Error in Android studio - 173.4670197 - android

Got following error after updating Android Studio from 171.xxxxx to latest 173.xxxxx. I am not able to build any project due to this. Tried various ways but unable to find the solution. I really appreciate your help!

Add following line in gradle.properties and build and run
android.enableAapt2=true

Related

[SOLVED]After „Android Gradle Plugin Update Recommended“ I got this error: Could not resolve com.android.support.constraint:constraint-layout:2.0.4

** I updated to Androidx as #androidkiller in the comments wrote**
I had an example app of a Navigation Drawer from a long time ago, incase I would need it someday. The day was today. After opening it today I got a message telling me I had to update the gradle plugin.
So I updated it and unfortunately I got an error: I got this error: Could not resolve com.android.support.constraint:constraint-layout:2.0.4.
Unfortunately I don't know where to go to fix the error. I did try clean and rebuild the project but it didn't helped. Also I tried some solutions from other post having the same problem but another Gradle version but it didn't help. Like going to Android SDK and the to the Android Tools and click the missing constraint layout versions.
Any thoughts?

Android Room tutorial does not build

UPDATE: Solved! (see fix at the bottom)
I'm trying to go through the Android Room tutorial but get stuck on step3. I keep getting an error when trying to update the gradle file as specified by the tutorial.
https://codelabs.developers.google.com/codelabs/android-room-with-a-view/index.html?index=..%2F..index#1
When trying to build, I get the following error:
Setting roomVersion to "2.1.0-alpha06" or just "2.1.0" generates the same type of error.
Is it only me or is there something wrong with this tutorial?
Anyone with an idea why the androidx.room:room-testing dependancy fails to build?
UPDATE:
I solved the issue by uninstalling Android Studio and re-installing it. I also needed to do a full cleanup and remove all "android studio" and "gradle" related files on my system. Maybe a bit overkill, but this is whats fixed it for me.

Android Studio Execution failed for task ':app:mergeDebugResources' with special chars in username

i have a strange error with AAPT2 iin Android Studio. I think it has something to do with german special characters in my account name in windows.
If i set my gradle to version 3.0.1 and also set android.enableAapt2 to false everything works fine. But since i researched, setting the option is not a solution to the problem.
Now if i set the gradle version to 3.1.2 and remove android.enableAapt2 from the properties i get the following error message:
And this one:
One way to solve the problem was to create a new account in windows without special chars in the name. It compiled and did run very well. I really tried everything in the web but could not find a solution to the problem.
Maybe you can help me.
First of all check your build log botom of the build section you shared whether any error related to your project showing or not. If error showing then fix those. Build and run again and fix all the error comes up. It will eliminate aapt2 issue without changing android gradle plugin.
Secondly if there is not any project related error showing in the build log but still its showing aapt2 error then you can fix it by following below steps.
Update your android gradle plugin in your project level build.gradle file like below:
classpath 'com.android.tools.build:gradle:3.2.0-alpha13'
Now update android.enableAapt2=true. Then check and build your project.

Android aaptFriendlyManifestOutputDirectory=null

I'm new to android studio and to android development in general. My application was building fine but now the Gradle fails to build with the following error message:
Gradle tasks[:app:assembleDebug]
null value in entry:aaptFriendlyManifestOutputDirectory=null
I haven't found any other threads encountering this issue and don't really know where to start to resolve it.
Deleting the .Gradle file resolved this issue for me!

Error NotificationCompatIceCreamSandwich has already been added to output. Please remove duplicate copies

I had my program building successfully but then I updated my Android Studio to version 1.0.
First I had this error after the update:
Error:The project is using an unsupported version of the Android Gradle plug-in (0.12.2). The recommended version is 1.0.0-rc4.
Fix plugin version and re-import project
Then this error that I fixed by replacing runProguard by minifyEnabled:
Error:(16, 0) Gradle DSL method not found: 'runProguard()'
And finally this error appeared:
Error:Class android.support.v4.app.NotificationCompatIceCreamSandwich has already been added to output. Please remove duplicate copies.
I already looked in several places but couldn't find a solution. Does anyone know how to solve it? The project was building successfully until the update.
For those who might have the same problem as me, I solve my problem the hard way. The solution I found was create a new project with the same name, copy all the basic files (java, xml and drawable) to the new project and copy the lines I wanted from the manifest. After it builds the Gradle, it builds sucessfully. I think the reason must be about the new arrangement of foulders from the version 1.0
There must be a better way but until then, at least now it works. Thanks to those who tried to help

Categories

Resources