Reputation: 115
My Android Studio version is 2.1 preview. I'm running my project using Google APIs, Android 17, rev 4 (API 17).
I'm having 1 pop-up error while debugging app.
[Information: Image to show my pop-up errror. Click to show this.][1]
I never met error like this earlier. How can I resolve this?
Updated:
I often meet error like this:
error: diamond operator is not supported in -source 1.6
(use -source 7 or higher to enable diamond operator
I waas trying to do research on this. I tried but it never worked out. When does this error come and how can I resolve it?
Thanks.
Upvotes: 10
Views: 34534
Reputation: 2962
Go to
Tools -> Android -> Sync Project with Gradle Files
in Android Studio 3.0.1 to solve the following
Error: Please select Android SDK
as mentioned here
Upvotes: 6
Reputation: 698
It is not an error. Its just Android Studio trying to figure out what you want to debug. So in your case the "app" module. Have you done a gradle build through? Pushing this: . Gradle should set it up so you dont have to choose debug target.
EDIT: This icon is different on Android Studio 3.0, is called "Sync Project with Gradle Files".
Upvotes: 20
Reputation: 630
On new Android Studio; Open app's module settings with right click, Select 'app' from left sidebar, Change 'Compile Sdk Version' na 'Build Tools Version' as whatever your compileSdkVersion & buildToolsVersion are on build.gradle, Click OK, that's it.
Upvotes: 4
Reputation: 2637
Open Android Studio preference-> search for "SDK" -> edit Android SDK Location point it to your sdk android folder.
UPDATE
For resolve this error
error: diamond operator is not supported in -source 1.6
(use -source 7 or higher to enable diamond operator
Download jdk 1.7 and open Module Setting -> SDK Location -> edit JDK Location point it to jdk 1.7 home foler.
Upvotes: 7