Reputation: 419
i'm working on my (multidex) android application and it seems the 1.1.0 AS update has broken my project structure. I'm using API Level 19 w. JDK 1.7.0_75 and build tools 21.1.2.
problem is that AS cannot resolve any of my external libraries. The libs seems to be imported correctly, they're listed in the project windows under external libraries, my module references them and gradle contains:
dependencies {
//does not work
provided 'com.google.code.gson:gson:2.3.1'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.code.gson:gson:2.3.1'
}
Within a class import cannot be resolved but "intellisense" is able to detect and autocomplete the namespace.
weird thing is rebuilding and debugging the application works except that adb stops to work after the apk has been installed and launched on the device. It pops up the "Waiting for debugger" window but nothing happens and logcats error output is "Starting window AppWindowToken{} timed out".
Upvotes: 0
Views: 1906
Reputation: 3330
Often this comes as Android Studio caches a bunch of information that persists between installs. As soon as you're getting an issue it's a good idea to go to File -> Invalidate Caches/Restart and drop the cache.
It will be a bit slow when it restarts but can often solve a lot of problems.
Upvotes: 4