opened
Raptorel
username_0
How do I solve this?
Importing osmdroid-master as a project
issue
created
spyhunter99
username_1
You probably need to add "Google APIs:23". It's a separate item in the sdk manager. We only use as an bridge. I think that the number of users using it is very low
comment
created
Raptorel
username_0
I did that. It wasn't installed by default, so I installed it using the SDK Manager. It still gives the same error. In fact, I installed everything that had to do with "Google" in the 23 API.
comment
created
spyhunter99
username_1
Try to build from the command line first with gradlew...
so `gradlew install`

Also check your ANDROID_HOME environment variable. Can you build any other android projects? What os are you running?
comment
created
spyhunter99
username_1
is the problem with android studio, intellij or gradle?
comment
created
Raptorel
username_0
The problem is with Android Studio, and it's a really weird problem, if you ask me. Let me try today to play around with it a bit more and see what I can come up with.
comment
created
stoanarrr
username_2
Hi I've had the same problem with Android Studio.

Changing  
compileSdkVersion 'Google Inc.:Google APIs:23'
buildToolsVersion "23.0.3"

to
compileSdkVersion 23
buildToolsVersion '23.0.3'

in the build.gradle files in [https://github.com/osmdroid/osmdroid/blob/master/osmdroid-third-party/build.gradle](url) and [https://github.com/osmdroid/osmdroid/blob/master/GoogleWrapperSample/build.gradle](url) solved the problem for me.
comment
created
Raptorel
username_0
Good to know, I need to check if that works here as well (also thanks for pointing out the actual location of these files)
comment
created
Raptorel
username_0
I have obviously installed Build Tools revision 23.0.3, and even checked on the SDK manager to see if they're installed. But the problem persists. Any ideas?
comment
created
spyhunter99
username_1
I bet you have two copies of the sdk installed
comment
created
Raptorel
username_0
Well, even if I had 20 copies of the SDK installed, as long as Android Studio points to the right one, it should work. The project should care about the SDK that Android Studio is pointing to, and should be agnostic about anything else in my computer. 

But I can't have more than one SDKs since I just installed Android Studio and the JDK with its default settings, and that's it.
comment
created
Raptorel
username_0
OK so I restarted Android Studio and there are no errors now (with the modifications that username_2 talked about in his post).
comment
created
spyhunter99
username_1
right my point was that you could have more than one and whatever android studio/gradle local.properties is set to may not have the Google Apis . You're best off using the standalone sdk manager the "Google APIs" v23, the build tools 23.0.3 and i'm pretty sure you also need "Google Play Services". I also have the "Android Support Repository" and the "Google Repository" (both listed under "Extras" installed.
comment
created
spyhunter99
username_1
reopen if you continue to run into troubles. i have publish permissions now so expect more frequent releases
comment
closed
spyhunter99
username_1
issue