Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

AS 3.2 Alpha - Could not find the AndroidManifest.xml file, using generation folder #2128

@veresvit

Description

@veresvit

On Android Studio 3.2 Alpha 8 with according build gradle plugin and using build variants its not posible to build the app. When downgrade to stable Android Studio 3.1 and build gradle plugin 3.1.0 the build works fine.

AndroidAnnotations version: 4.4.0

Android compile SDK version: 27

com.android.tools.build:gradle: 3.2.0-alpha08

build.gradle:

apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'realm-android'

android {
	compileSdkVersion 27
	defaultConfig {
		...
		compileOptions {
			sourceCompatibility JavaVersion.VERSION_1_8
			targetCompatibility JavaVersion.VERSION_1_8
		}
		javaCompileOptions {
			annotationProcessorOptions {
				// Needs to be same as package name and manifest package
				arguments = ['resourcePackageName': 'pack.age.name']
			}
		}
	}
	buildTypes {
		release {
			minifyEnabled false
			proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
		}
	}
	flavorDimensions "default"
	productFlavors {
		flavtest {
			buildConfigField "String", "ENDPOINT_URL", '"https://.../"'
			versionNameSuffix "-test"
		}
		preprod {
			buildConfigField "String", "ENDPOINT_URL", '"https://.../"'
			versionNameSuffix "-preprod"
		}
		production {
			buildConfigField "String", "ENDPOINT_URL", '"https://.../"'
		}
	}
	dependencies {
		...
		annotationProcessor "com.github.hotchemi:permissionsdispatcher-processor:3.1.0"
		// Permission dispatcher annotation
		annotationProcessor "com.github.AleksanderMielczarek:AndroidAnnotationsPermissionsDispatcherPlugin:2.1.1"
		// AA
		annotationProcessor "org.androidannotations:androidannotations:4.4.0"
		implementation "org.androidannotations:androidannotations-api:4.4.0"
		// Android Annotations for Greenrobot
		annotationProcessor "com.tmtron:green-annotations:1.0.2"
		implementation "com.tmtron:green-annotations-api:1.0.2"
	}
	apply plugin: 'com.google.gms.google-services'
}

Stacktrace in case of AA crash:

\app\build\generated\source\apt\flavtest\androidannotations.log

10:13:34.489 [Daemon worker Thread 11] ERROR o.a.i.h.AndroidManifestFinder:147 - Could not find the AndroidManifest.xml file, using  generation folder [C:\Users\username\Documents\_Projects\Appname\app\build\generated\source\apt\flavtest\debug])

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions