我正在使用此 URL 来设置 ADM:https://developer.amazon.com/docs/adm/integrate-your-app.html?cmp=US_2022_05_CON_ADM-Tutorial&ch=soc&chlast=soc&pub=yub&publast=yub&type=org&
我正在使用此 URL 设置 ADM: https://developer.amazon.com/docs/adm/integrate-your-app.html?cmp=US_2022_05_CON_ADM-Tutorial&ch=soc&chlast=soc&pub=yub&publast=yub&type=org&typelast=org
请提出解决该问题的建议。
错误:
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/amazon/device/messaging/ADM;
at com.schok.notification.NotificationActivity.onCreate(NotificationActivity.kt:16)
at android.app.Activity.performCreate(Activity.java:8523)
at android.app.Activity.performCreate(Activity.java:8487)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1438)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3815)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3980)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
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:2394)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:211)
at android.os.Looper.loop(Looper.java:300)
at android.app.ActivityThread.main(ActivityThread.java:8296)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:559)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.amazon.device.messaging.ADM" on path: DexPathList[[zip file "/data/app/~~vxTmTvSCwgVFhn5cVNTHcA==/com.schok.notification-uaEqOfRR3zWEepzTjsia8Q==/base.apk"],nativeLibraryDirectories=[/data/app/~~vxTmTvSCwgVFhn5cVNTHcA==/com.schok.notification-uaEqOfRR3zWEepzTjsia8Q==/lib/arm64, /system/lib64, /system_ext/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
有没有其他方法可以在不使用 Google 服务或付费服务的情况下实现推送通知?