Using Firebase Messaging 12.0.1 sdk gives ClassnotFoundException com.google.android.gms.measurement.AppMeasurement in android
Reported by
h.pradee...@gmail.com,
Jan 9
|
||
Issue descriptionSteps to reproduce the problem: Hi, In android I am trying to migrate from GCM to FCM I am currently using chromium version 69.0.3497.100 I have added all aar files required for Firebase messaging and linked their dependencies. I am using Firebase messaging version 12.0.1. But when i run ninja command after integration it gives following error. Exception in thread "main" java.lang.RuntimeException: java.lang.ClassNotFoundException: com.google.android.gms.measurement.AppMeasurement at org.chromium.bytecode.CustomClassLoaderClassWriter.getCommonSuperClass(CustomClassLoaderClassWriter.java:34) at org.objectweb.asm.ClassWriter.a(Unknown Source) at org.objectweb.asm.Frame.a(Unknown Source) at org.objectweb.asm.Frame.a(Unknown Source) at org.objectweb.asm.MethodWriter.visitMaxs(Unknown Source) at org.objectweb.asm.MethodVisitor.visitMaxs(Unknown Source) at org.objectweb.asm.ClassReader.a(Unknown Source) at org.objectweb.asm.ClassReader.b(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source) at org.chromium.bytecode.ByteCodeProcessor.process(ByteCodeProcessor.java:95) at org.chromium.bytecode.ByteCodeProcessor.main(ByteCodeProcessor.java:154) Can anyone suggest how it can be resolved ? Thanks in advance. What is the expected behavior? What went wrong? Unable to integrate play-services-measurement into firebase messaging 12.0.1, since play-services-measurement last version is 8.4.0 and adding it as dependency creates multiple play-service-basement dependencies to be added play-service-basement 12.0.1 play-service-basement 8.4.0 which would give the following error Exception: Package name "com.google.android.gms" appeared twice. All android_resources() targets must use unique package names, or no package name at all. ninja: build stopped: subcommand failed. Did this work before? N/A Does this work in other browsers? N/A Chrome version: 69.0.3497.100 Channel: stable OS Version: Flash Version:
,
Jan 10
@ h.pradeep32: This doesn't seems to be chrome related. Could you please let us know if this issue is because of chrome. Also please check the issue on latest build#71.0.3578.99 and let us know the behavior. |
||
►
Sign in to add a comment |
||
Comment 1 by chelamcherla@chromium.org
, Jan 10