android-places-demos icon indicating copy to clipboard operation
android-places-demos copied to clipboard

Bug: all buttons in the sample of Kotlin&v3 cause a crash

Open AndroidDeveloperLB opened this issue 5 years ago • 0 comments

Environment details

  1. Specify the API at the beginning of the title (for example, "Places: ...") v3

  2. OS type and version Emulator API 30

  3. Library version and other environment information // GMS gmsImplementation 'com.google.android.libraries.places:places:2.4.0'

    // V3 v3Implementation name:'places-maps-sdk-3.1.0-beta', ext:'aar' v3Implementation 'com.android.volley:volley:1.1.1' v3Implementation 'com.google.android.gms:play-services-base:17.4.0' v3Implementation 'com.google.android.gms:play-services-basement:17.4.0' v3Implementation 'com.google.android.gms:play-services-gcm:17.0.0' v3Implementation 'com.google.android.gms:play-services-location:17.1.0' v3Implementation 'com.google.android.gms:play-services-tasks:17.2.0' v3Implementation 'com.google.android.libraries.maps:maps:3.1.0-beta' v3Implementation 'com.google.auto.value:auto-value-annotations:1.7.4' v3Implementation 'com.google.code.gson:gson:2.8.6'

Steps to reproduce

  1. Import attached, which is based on the demo here:

Code example

It's just what's on the sample.

Stack trace

2020-10-19 10:43:01.502 32526-32526/com.example.placesdemo.v3 E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.placesdemo.v3, PID: 32526
    java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/datatransport/runtime/TransportRuntime;
        at com.google.android.libraries.places.internal.fg.<init>(PG:5)
        at com.google.android.libraries.places.internal.cb.h(PG:17)
        at com.google.android.libraries.places.internal.cb.i(PG:18)
        at com.google.android.libraries.places.internal.cb.l(PG:21)
        at com.google.android.libraries.places.internal.cb.r(PG:27)
        at com.google.android.libraries.places.internal.cb.a(PG:1)
        at com.google.android.libraries.places.api.Places.a(PG:43)
        at com.google.android.libraries.places.api.Places.createClient(PG:30)
        at com.example.placesdemo.CurrentPlaceTestActivity.onCreate(CurrentPlaceTestActivity.kt:62)
        at android.app.Activity.performCreate(Activity.java:8000)
        at android.app.Activity.performCreate(Activity.java:7984)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3422)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:223)
        at android.app.ActivityThread.main(ActivityThread.java:7656)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.datatransport.runtime.TransportRuntime" on path: DexPathList[[zip file "/data/app/~~4e9kwdXxgvYn4L0pRpwLiA==/com.example.placesdemo.v3-SLNdZABmDyGjIHSjoIMU4w==/base.apk"],nativeLibraryDirectories=[/data/app/~~4e9kwdXxgvYn4L0pRpwLiA==/com.example.placesdemo.v3-SLNdZABmDyGjIHSjoIMU4w==/lib/x86, /data/app/~~4e9kwdXxgvYn4L0pRpwLiA==/com.example.placesdemo.v3-SLNdZABmDyGjIHSjoIMU4w==/base.apk!/lib/x86, /system/lib, /system_ext/lib]]

Following these steps will guarantee the quickest resolution possible.

I've tried each of the buttons. All cause a crash.

See attached:

https://github.com/kataklisma/android-google-places/files/5399937/2020-10-19_10-42-11.zip

And the project (without the real key):

https://github.com/kataklisma/android-google-places/files/5399948/demo-kotlin.zip

AndroidDeveloperLB avatar Oct 19 '20 07:10 AndroidDeveloperLB