2
respostas

Mapa nāo aparece ):

Boa noite,

Estou tentando utilizar o mapa, e fiz todos os procedimentos.. Mas por algum motivo meu mapa na aparece.. Até criei um outro projeto só pra testar este funcionalidade e nele tb nao aparece... Tentei também olhar nas logs mas nada esta claro... Poderiam me ajudar com isso ?

05-13 03:02:20.918 14970-15035/br.com.tcc.tcc D/OpenGLRenderer: HWUI GL Pipeline
05-13 03:02:20.979 14970-15035/br.com.tcc.tcc I/zygote: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
05-13 03:02:20.979 14970-15035/br.com.tcc.tcc I/OpenGLRenderer: Initialized EGL, version 1.4
05-13 03:02:20.979 14970-15035/br.com.tcc.tcc D/OpenGLRenderer: Swap behavior 1
05-13 03:02:20.979 14970-15035/br.com.tcc.tcc W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
05-13 03:02:20.979 14970-15035/br.com.tcc.tcc D/OpenGLRenderer: Swap behavior 0
05-13 03:02:20.993 14970-15035/br.com.tcc.tcc D/EGL_emulation: eglCreateContext: 0xdb384f00: maj 3 min 0 rcv 3
05-13 03:02:21.019 14970-15035/br.com.tcc.tcc D/EGL_emulation: eglMakeCurrent: 0xdb384f00: ver 3 0 (tinfo 0xdb3835a0)
05-13 03:02:21.043 14970-15035/br.com.tcc.tcc D/EGL_emulation: eglMakeCurrent: 0xdb384f00: ver 3 0 (tinfo 0xdb3835a0)
05-13 03:02:21.045 14970-15031/br.com.tcc.tcc D/EGL_emulation: eglCreateContext: 0xdb30cf60: maj 1 min 0 rcv 1
05-13 03:02:21.079 14970-15031/br.com.tcc.tcc D/EGL_emulation: eglMakeCurrent: 0xdb30cf60: ver 1 0 (tinfo 0xe318d6c0)
05-13 03:02:22.506 14970-14970/br.com.tcc.tcc V/StudioProfiler: StudioProfilers agent attached.
05-13 03:02:22.589 14970-15086/br.com.tcc.tcc V/StudioProfiler: Acquiring Application for Events
05-13 03:02:22.641 14970-14970/br.com.tcc.tcc V/StudioProfiler: Transformed class: java/net/URL
05-13 03:02:22.642 14970-14970/br.com.tcc.tcc W/zygote: Current dex file has more than one class in it. Calling RetransformClasses on this class might fail if no transformations are applied to it!
05-13 03:02:22.893 14970-15033/br.com.tcc.tcc W/DynamiteModule: Local module descriptor class for com.google.android.gms.googlecertificates not found.
    Failed to load module via V2: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.dynamite.DynamiteModule$DynamiteLoaderClassLoader" on path: DexPathList[[zip file "/data/app/br.com.tcc.tcc-80vSqpsXrfoAom1afmsFJQ==/base.apk", zip file "/data/app/br.com.tcc.tcc-80vSqpsXrfoAom1afmsFJQ==/split_lib_dependencies_apk.apk", zip file "/data/app/br.com.tcc.tcc-80vSqpsXrfoAom1afmsFJQ==/split_lib_resources_apk.apk", zip file "/data/app/br.com.tcc.tcc-80vSqpsXrfoAom1afmsFJQ==/split_lib_slice_0_apk.apk", zip file "/data/app/br.com.tcc.tcc-80vSqpsXrfoAom1afmsFJQ==/split_lib_slice_1_apk.apk", zip file "/data/app/br.com.tcc.tcc-80vSqpsXrfoAom1afmsFJQ==/split_lib_slice_2_apk.apk", zip file "/data/app/br.com.tcc.tcc-80vSqpsXrfoAom1afmsFJQ==/split_lib_slice_3_apk.apk", zip file "/data/app/br.com.tcc.tcc-80vSqpsXrfoAom1afmsFJQ==/split_lib_slice_4_apk.apk", zip file "/data/app/br.com.tcc.tcc-80vSqpsXrfoAom1afmsFJQ==/split_lib_slice_5_apk.apk", zip file "/data/app/br.com.tcc.tcc-80vSqpsXrfoAom1afmsFJQ==/split_lib_slice_6_apk.apk", zip file "/data/app/br.com.tcc.tcc-80vSqpsXrfoAom1afmsFJQ==/split_lib_slice_7_apk.apk", zip file "/data/app/br.com.tcc.tcc-80vSqpsXrfoAom1afmsFJQ==/split_lib_slice_8_apk.apk", zip file "/data/app/br.com.tcc.tcc-80vSqpsXrfoAom1afmsFJQ==/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/br.com.tcc.tcc-80vSqpsXrfoAom1afmsFJQ==/lib/x86, /system/lib, /vendor/lib]]
05-13 03:02:22.898 14970-15033/br.com.tcc.tcc I/DynamiteModule: Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:4
    Selected remote version of com.google.android.gms.googlecertificates, version >= 4
05-13 03:02:22.905 14970-15033/br.com.tcc.tcc W/zygote: Unsupported class loader
    Skipping duplicate class check due to unsupported classloader
05-13 03:02:23.023 14970-14970/br.com.tcc.tcc V/StudioProfiler: Memory control stream started.
05-13 03:02:24.542 14970-15091/br.com.tcc.tcc V/StudioProfiler: Live memory tracking disabled.
05-13 03:02:24.544 14970-15091/br.com.tcc.tcc V/StudioProfiler: Live memory tracking enabled.
    JNIEnv not attached
05-13 03:02:24.565 14970-15091/br.com.tcc.tcc V/StudioProfiler: Loaded classes: 6441
05-13 03:02:24.734 14970-15091/br.com.tcc.tcc V/StudioProfiler: Tracking initialization took: 189863985ns
05-13 03:02:25.959 14970-15137/br.com.tcc.tcc E/StudioProfiler: JVMTI error: 15(JVMTI_ERROR_THREAD_NOT_ALIVE) 
05-13 03:02:25.959 14970-15137/br.com.tcc.tcc I/chatty: uid=10082(br.com.tcc.tcc) Binder:14970_4 identical 3 lines
2 respostas

Caros,

Gerei uma nova chave na API, e mudou o meu erro, segue:

Failed to load module via V2: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.dynamite.DynamiteModule$DynamiteLoaderClassLoader" on path: DexPathList[[zip file "/data/app/br.com.tcc.tcc-ygdciQ9cmdQITZrdFcecgQ==/base.apk", zip file "/data/app/br.com.tcc.tcc-ygdciQ9cmdQITZrdFcecgQ==/split_lib_dependencies_apk.apk", zip file "/data/app/br.com.tcc.tcc-ygdciQ9cmdQITZrdFcecgQ==/split_lib_resources_apk.apk", zip file "/data/app/br.com.tcc.tcc-ygdciQ9cmdQITZrdFcecgQ==/split_lib_slice_0_apk.apk", zip file "/data/app/br.com.tcc.tcc-ygdciQ9cmdQITZrdFcecgQ==/split_lib_slice_1_apk.apk", zip file "/data/app/br.com.tcc.tcc-ygdciQ9cmdQITZrdFcecgQ==/split_lib_slice_2_apk.apk", zip file "/data/app/br.com.tcc.tcc-ygdciQ9cmdQITZrdFcecgQ==/split_lib_slice_3_apk.apk", zip file "/data/app/br.com.tcc.tcc-ygdciQ9cmdQITZrdFcecgQ==/split_lib_slice_4_apk.apk", zip file "/data/app/br.com.tcc.tcc-ygdciQ9cmdQITZrdFcecgQ==/split_lib_slice_5_apk.apk", zip file "/data/app/br.com.tcc.tcc-ygdciQ9cmdQITZrdFcecgQ==/split_lib_slice_6_apk.apk", zip file "/data/app/br.com.tcc.tcc-ygdciQ9cmdQITZrdFcecgQ==/split_lib_slice_7_apk.apk", zip file "/data/app/br.com.tcc.tcc-ygdciQ9cmdQITZrdFcecgQ==/split_lib_slice_8_apk.apk", zip file "/data/app/br.com.tcc.tcc-ygdciQ9cmdQITZrdFcecgQ==/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/br.com.tcc.tcc-ygdciQ9cmdQITZrdFcecgQ==/lib/x86, /system/lib, /vendor/lib]]
05-13 05:09:57.323 4459-4511/br.com.tcc.tcc I/DynamiteModule: Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:4
    Selected remote version of com.google.android.gms.googlecertificates, version >= 4
05-13 05:09:57.332 4459-4511/br.com.tcc.tcc W/zygote: Unsupported class loader
05-13 05:09:57.333 4459-4511/br.com.tcc.tcc W/zygote: Skipping duplicate class check due to unsupported classloader

Fala ai Vitor, tranquilo ?

Cara parece que está com algum problema para baixar as dependencias e isso está gerando erro.

Vou sugerir você fazer algo:

  • Clica na pasta base do projeto (ex.: br.com.caelum.projeto)
  • Com botão direito escolha a opção new -> Google -> Google Map Activity
  • isso fará um arquivo xml ser criado além da activity e o layout, você vai deletar a activity e o layout que forem gerados por ela, não apagar o xml de chave
  • nesse xml você vai ver vai ter uma url, você precisa copiar ela e abrir no navegador
  • basta você seguir até você gerar a chave da api do google maps, quando a tiver, cole a chave no xml, onde está escrito your_key_here