What should I edit in build.gradle or wrapper file to solve this?
My build.gradle file
build.gradle
My gradle-wrapper.properties file -
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-milestone-1-all.zip
Related
I am trying to run a music player which I got from github. I am getting this error while running it.
Could not determine java version from '11.0.10'.
Please help me solve it.
This is my graddle-wrapper properties file:-
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
Recently I faced the problem with this error in Flutter App development Android Studio, Execution failed for task ':app:compileDebugKotlin'.
Solution:
1 open project level build.gradle then replace your ext.kotlin_version = '1.4.32' with new version according to release so I replaced ext.kotlin_version = '1.4.32' with this ext.kotlin_version = '1.6.0' and solved.
This issue is usually caused by the outdated Kotlin gradle plugin version configured in the Flutter project's Android build. To solve this issue, update the plugin version located at the project-level build.gradle located in {FLUTTER_PROJECT}/android/build.gradle
I am using share: ^0.6.4+3 in my project but when I launch my project on my emulator, I am encountering:
Execution failed for task ':share:compileDebugJavaWithJavac'.
> java.io.FileNotFoundException: /home/chinkysight/Desktop/Pecha/build/share/intermediates/annotation_processor_list/debug/annotationProcessors.json (No such file or directory)
I tried downgrading the version, but it wasn't helpful :(
java.io.FileNotFoundException: /home/chinkysight/Desktop/Pecha/build/share/intermediates/annotation_processor_list/debug/annotationProcessors.json (No such file or directory)
you can delete your .gradle folder and rebuild project again or you can update your gradle version in gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
change the value of the gradle version to the latest version
Try deleting the android/.gradle, android/build, android/app/build. This is the only thing that worked for me.
Then open Android Studio -> File-> Invalidate Caches/Restart
This is an Ionic Cordova project. I haven't touched in in a while but I came back to it now and when I run
ionic cordova build android
I get the following error:
Minimum supported Gradle version is 4.4. Current version is 4.1. If using
the gradle wrapper, try editing the distributionUrl in
C:\projects\ghost\gradle\wrapper\gradle-wrapper.properties to gradle-4.4-
all.zip
So I did that and had my gradle.properties file looking like this:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-
all.zip
But the build still fails and the properties file reverts to have 4.1 listed in it.
I have Gradle 4.9 installed and added to the path but that didn't work either.
Windows 10 Machine.
UPDATE:
I tried changing the cordova build script in GradleBuilder.js where it referenced gradle 4.1 to have gradle-4.4-all instead but the result was the same.
Thanks for any input.
Steve
upgrade all your Sdk and do:
ionic cordova platform rm android
ionic cordova platform add android#7.1.1 or latest
this will allow u to correct the gradle problem since it will update the gradle automatic
Error:No installed build tools found. Install the Android build tools version 19.1.0 or higher.
Every time i used to gradle sync the project from android studio,I got above error.
Try to change your gradle version in /projectName/build.gradle
classpath 'com.android.tools.build:gradle:x;xxxx'
Then download the new version of the build tools 19.1 and change the following line in /projectName/moduleName/build.gradle
android {
compileSdkVersion 19
buildToolsVersion "19.1" //Set this to 19.1 after SDK update
...
}
Sync your gradle files and it should be working now.