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
I got this problem on Android studio, there in either sync or build square were this link like blue text about this issue, press that button and it download something that fix this problem
Delete "build" folder from project's root folder. Then do "invalidate cache and restart". This will restart your Android Studio and then build the app again, will solve the issue.
Solution is
Connect your computer to the internet
Click
On toolbar
It will automatically sync the gradle.
If no error messages are shown: sometimes the command-line gradle shows them. Just go the the command-line, change to the
app
directory and typeor, if the details are missing
This can provide additional information how to debug the problem.
Resolution is simple. Open the "Android SDK Manager", update all packages and then restart your Android Studio. After that you project should compile without any issues.