I have installed Android Studio version 1.0.1. I have imported my projects from eclipse and it works fine. Then i deleted a module and reimport it to my Android Studio project. The gradle build says "BUILD SUCCESSFUL" but it pops up a alert window with the message
Failed to complete Gradle execution. Cause: Already disposed: Module: 'MYMODULENAME'
I cant start my app now. Any idea what i can do?
Edit: I solved the problem with the following instructions:
- Switch project view from Android to Project
- Remove entry include 'MYMODULENAME' in settings.gradle
- The blue box in the module symbol dont show. Then you can delete the module in the context menu
- Import the module
For me this happened when i deleted a module and built a new one with the same package name Solution:
Simplest solution. (Try this first).
Quit and Restart Android studio. (Quit not close)
Build > Clean your project if needed.
I had the same problem, after delete some gradle files (of aws)
i solved it by mark them "ignore gradle"
I believe it is not the best answer but it solve it for me
Gradle (at the right bar)--> right click on the problematic gradle --> ignore
Had a similar issue when working with RN components in my Android project and the only way to get around this issue was to ignore the gradle project.
To do this:
No idea what causes this but I've had this happen to me when using React Native Maps.
Note: If you're still having issues following this. Try to refresh the gradle project which was causing issues.
I also face this problem sometimes. Click on gradle console in bottom bar of android studio, at right side. It will show the exact error in logs. My problem was that I had compile SDK 22 and imported appcomact library was of sdk 23.
I figured out this problem by:
./gradlew
clean