ProjectSettings:
Minimum 24
Targed 24
JDK matchndk
NDK android-24
When packaging Android spawn this error:
Task :permission_library:generateDebugRFile
UATHelper: Packaging (Android (ETC2)): > Task :app:processDebugResources FAILED
UATHelper: Packaging (Android (ETC2)): FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (ETC2)): * What went wrong:
UATHelper: Packaging (Android (ETC2)): Execution failed for task ‘:app:processDebugResources’.
UATHelper: Packaging (Android (ETC2)): > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
UATHelper: Packaging (Android (ETC2)): > AAPT2 aapt2-4.0.0-6051327-windows Daemon #0: Unexpected error during link, attempting to stop daemon.
UATHelper: Packaging (Android (ETC2)): This should not happen under normal circumstances, please file an issue if it does.
Found solution:
where is location file to set:
object Plugins {
const val androidApplication = “com.android.application”
const val androidLibrary = “com.android.library”
}
:app
plugins {
id(Plugins.androidApplication)
…
}
:mymodule
plugins {
id(Plugins.androidLibrary)
…
}