Android Question google maps nodefclassfound error

Discussion in 'Android Questions' started by abcroverix, Feb 9, 2015.

  1. abcroverix

    abcroverix Member Licensed User

    Hello everybody,
    I tried to integrate google maps in my app following the Erel's tutorial.
    After the app starts it creashes with this error:

    java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/GooglePlayServicesUtil;
    at anywheresoftware.b4a.objects.MapFragmentWrapper.IsGooglePlayServicesAvailable(
    at b4a.example.main._activity_create(
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(
    at anywheresoftware.b4a.BA.raiseEvent2(
    at b4a.example.main.afterFirstLayout(
    at b4a.example.main.access$100(
    at b4a.example.main$
    at android.os.Handler.handleCallback(
    at android.os.Handler.dispatchMessage(
    at android.os.Looper.loop(
    at java.lang.reflect.Method.invoke(Native Method)

    My b4A version is 3.50.
    I use a nexus 7 with android 5.0.2

    From AVD I installed the google play services and Google Maps api v2.
    Create the key for google maps.

    In my manifest files I add these lines:

    AddManifestText( <permission
    android: protectionLevel="signature"/>
    <uses-feature android:glEsVersion="0x00020000" android:required="true"/>)

    android:value="@Integer/google_play_services_version" />)

    Where is my mistake?

    Many thanks
  2. eurojam

    eurojam Well-Known Member Licensed User

    Did you copy google-play-services-lib library (google-play-services.jar) to the b4a Library directory?
  3. Erel

    Erel Administrator Staff Member Licensed User

    You must use B4A v3.82+ to use the Google Play Services.
  4. abcroverix

    abcroverix Member Licensed User

    Many thanks Erel!
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice