My android studio has just updated and after that my app is not able to compile anymore. It shows this error:
Execution failed for task ':app:processDebugManifest'.
Could not get unknown property 'manifestOutputDirectory' for task ':app:processDebugManifest' of type
com.android.build.gradle.tasks.ProcessMultiApkApplicationManifest.
Android studio: 4.1
Android gradle plugin version: 4.1.0
Gradle: 6.6.1
It was an outdated Huawei's AG Connect plugin. Solution here: stackoverflow.com/a/64390789/1363087
Related
I have a old android studio project, the gradle version is 4.10.1. Today when I try to open it with androidstudio, I got below error:
cvc-complex-type.2.4.a: Invalid content was found starting with element 'base-extension'. One of '{layoutlib}' is expected.
I am thinking the gradle 4.10.1 is tool old but how can I upgrade it to latest one?
i cant run my login activity in Android studio so help me with this gradle sync (https://i.stack.imgur.com/WijMd.png)
i checked my Java home version
i checked sdk tools update
I was building my android project on Android Studio 4.2.1.
but I get this error:
org.gradle.tooling.model.UnsupportedMethodException: Unsupported method:
AndroidArtifact.getBuildConfigFields().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.
my Gradle version:
distributionUrl=https\://services.gradle.org/distributions/gradle-6.4.1-bin.zip
my Gradle plugin tools version:
com.android.tools.build:gradle:4.1.0-alpha09
The both Gradle and Gradle plugin are the latest versions. The exception says that I need to update/change the connected Gradle version.
I am impossible to upgrade further version because I am already on the latest version. So, the only thing I can do is changing the grade version, but which one?
I was able to build project successfully by using :
classpath 'com.android.tools.build:gradle:4.0.0'
But if you are trying to use jetpack compose you will have to use latest canary version of android studio.
I can't create new projects anymore with this problem now despite my version is the latest 2.2.
Whenever I create a new project I get this message from gradle build:
Error:Execution failed for task ':app:compileDebugAidl'.
java.lang.IllegalStateException: aidl is missing
PROPLEM SOLVED:
android studio was notifying me of new updates to be installed and i made sure to check all (android SDK build tools) in tools packages folder in SDK manager
I just upgraded my Android Studio to the very latest version 1.0rc4 and i am getting this error in gradle sync window
What is it I am supposed to do to make the build successful?