How to fix this build issue in android? - android

i keep getting this build error, i cant get the generated binding object correctly in the Kotlin code
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Error: The processing instruction target matching "[xX][mM][lL]" is not allowed.
i've tried to invalidate, restart, clean the project but it didn't pay off

if the clean and rebuild doesn't work.I think that downgrading your gradle version to 1.2.3.I hope it helps.

Related

Jenkins build failed with crashlytics

Trying to build android in Jenkins with crashlytics but every-time the error message is coming in log as
"FAILURE: Build failed with an exception.
Where:
Build file
What went wrong:
A problem occurred evaluating project ':app'.
Failed to apply plugin [id 'io.fabric']
Could not create plugin of type 'CrashlyticsPlugin'.
Could not initialize class com.crashlytics.tools.gradle.CrashlyticsPlugin"
Please help, tried this way also "Android Jenkins build fails with crashlytics"
It did not work.
You have to install Crashlytics jar manuel into Jenkins. From here.
I guess the plug-in is facing some problems when downloading this file from Amazon.
You can check here.

Gradle error: Execution failed for task ':crashlyticsGenerateSymbolsArmRelease'. > Crashlytics Developer Tools error

I had setup crashlytics to get ndk crashes for my Android app. Crashes are getting recorded in crashlytics but I am not getting the line numbers.
Went through: https://support.crashlytics.com/knowledgebase/articles/605190-missing-line-numbers-in-native-crashes
I am getting the following error on running below command:
./gradlew crashlyticsUploadSymbolsArmRelease
What went wrong:
Execution failed for task ':crashlyticsGenerateSymbolsArmRelease'.
Crashlytics Developer Tools error.
I have tried various solutions but nothing is helping.
In case you are still looking: I had the same problem and found the correct command in the Gradle view:
app->Tasks->other->crashlyticsUploadSymbolsMYAPPVARIANTNAME
You can search the gradle tasks in the gradle window as well by just starting to type:

Execution failed for task ':app:processDebugManifest' in Gradle

Receiving following errors
in Android Studio 2.2
Cannot resolve symbol R in Android Studio 2.2
in gradle console
Execution failed for task ':app:processDebugManifest'.
Manifest merger failed with multiple errors, see logs
Any help would be appreciated.
clean your build, and retry? Sometimes I noticed when I switch branches a lot my R.java file is outdated and doesn't get rebuilt correctly or references out of date xml id's.
Just rebuild project and it will be okay, I also have faced alot of times this error

how to remove unused code from android-support-v4.jar

I import iosched into my android-studio,and to learn how to remove unused code from jars.When I executing 'installDebug' there is no problem,but when I executing 'installQualityassurance', or just changed minifyEnabled's vaule to true and then executing 'installDebug' again,there will be a problem like below:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':android:packageDebug'.
Unable to compute hash of E:\Android\android_studio_workspace\iosched\android\build\intermediates\classes-proguard\debug\classes.jar
I know the key point to remove unused code from jar is change minifyEnabled's vaule to true,but in my project ,for some jars it works,but for android-support-v4.jar has no effect. What should I do to remove unused code in android-support-v4.jar?
Thanks a lot!

Execution failed for task ':app:mockableAndroidJar'

I am using local gradle of version 2.4 and IntelliJ IDEA 14.1.3
When I run project from IntelliJ it runs fine but when execute gradle clean build command from command line it gives the flowing exception and build fails.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mockableAndroidJar'.
> java.util.zip.ZipException: invalid entry compressed size (expected 2051 but got 2050 bytes)
This looks like an old ques which is not yet answered yet.
I got into same problem, when my jar files could not be read by Android Studio and it gave me the above mentioned error.
Taking lead from the comment by -Mikhail Boyarsky I changed classpath in build.gradle file to 'com.android.tools.build:gradle:2.2.3'.
Synced project and it started working.
I solved it by changing com.android.tools.build:gradle:2.3.0 version to 2.2.3, then build it with another exception and then I changed the version back to 2.3.0.
Not sure how it works, looks like a gradle bug.

Categories

Resources