Android Studio (1.2 RC0) keeps telling me
Error running android: Gradle project sync failed. Please fix your project and try again.
How can I find out what the problem is? Unfortunately the solutions from this SO thread did not help.
相关问题
- Could not read entry … from cache taskArtifacts.bi
- Could not read entry … from cache taskArtifacts.bi
- Non-static method isGooglePlayServicesAvailable an
- Configure gradle plugin based on future tasks
- How to fix the error Cannot change strategy of con
相关文章
- Android BuildConfig Field generating String incorr
- Android virtual device manager crashes with “doubl
- What are the `^let` annotations in Android Studio
- Android Studio doesn't display logs by package
- Gradle Could not find method “() for arguments on
- Gradle Custom Plugin: gradleApi() vs Explicit Depe
- Advanced profiling is unavailable for the selected
- Android Studio 3.5 ERROR: Unable to resolve depend
It took me some time to resolve this.
There was a reason, I didn't want to update NDK. When all else failed, I updated NDK and that did the trick.
I had the same issue yesterday. After opening the "Android SDK Manager", updating all packages and restarting Android Studio, the project compiled again.
Download grade files from this url and extract all in a folder: https://gradle.org/releases
Open file -> Setting in windows OS or Preferences in mac OS and in "Build, Execution, Deployment"
Click on "Gradle"
Check “Use local cradle distribution” and give that extracted folder path.
Run gradle.bat for Windows OS and gradle file for mac OS in that folder.
Then check “Offline work”.
"your extracted folder path"/gradle-4.10.2/bin/.gradle (for version 4.1.2 you can set your version)
Press OK and enjoy it.