google maps - Embedding play-services when using android-sdk-plugin+sbt -
i have scala android app, build sbt , android-sdk-plugin.
i need include google play-services library, using google maps api v2. contains resources , code.
after reading the android-sdk-plugin doc, i've seen this:
using google gms play-services aar: librarydependencies += "com.google.android.gms" % "play-services" % "3.1.36"
i've done so, when compiling app through sbt, receive error: androidmanifest.xml:34: error: error: no resource found matches given name (at 'value' value '@integer/google_play_services_version')
for me, clear symptompt resources of play-services aren't included. must referenced androidmanifest.xml:
<application android:name="..."> <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/> ... </application>
with gradle, haven't had problem, same androidmanifest.xml , dependencies setup.
i've tried use android-plugin way of doing no success. aarlib() syntax not understood android-sdk-plugin.
what right way of using play-services?
finally due not specifiying right version.
i've used this:
"com.google.android.gms" % "play-services" % "4.+"
instead of this:
"com.google.android.gms" % "play-services" % "4.2.42"
the .+ notation isn't smart enough :-(
you can list avaialable versions looking @ contents of folder:
android-sdk/extras/google/m2repository/com/google/android/gms/play-services/
Comments
Post a Comment