gpt4 book ai didi

android - Prolem 使用 urbanairship Provider android

转载 作者:塔克拉玛干 更新时间:2023-11-02 18:54:52 25 4
gpt4 key购买 nike

我正在使用 urbanairship 来显​​示通知。我已将我的 Android SDK 更新到最新更新,它开始显示与 urbanairship 提供商相关的错误,并且它在旧版本上运行良好。

05-22 17:54:30.476: E/AndroidRuntime(575): FATAL EXCEPTION: main
05-22 17:54:30.476: E/AndroidRuntime(575): java.lang.RuntimeException: Unable to get provider com.urbanairship.UrbanAirshipProvider: java.lang.ClassNotFoundException: com.urbanairship.UrbanAirshipProvider
05-22 17:54:30.476: E/AndroidRuntime(575): at android.app.ActivityThread.installProvider(ActivityThread.java:4289)
05-22 17:54:30.476: E/AndroidRuntime(575): at android.app.ActivityThread.installContentProviders(ActivityThread.java:4041)
05-22 17:54:30.476: E/AndroidRuntime(575): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3995)
05-22 17:54:30.476: E/AndroidRuntime(575): at android.app.ActivityThread.access$1300(ActivityThread.java:127)
05-22 17:54:30.476: E/AndroidRuntime(575): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1217)
05-22 17:54:30.476: E/AndroidRuntime(575): at android.os.Handler.dispatchMessage(Handler.java:99)
05-22 17:54:30.476: E/AndroidRuntime(575): at android.app.ActivityThread.main(ActivityThread.java:4508)
05-22 17:54:30.476: E/AndroidRuntime(575): at java.lang.reflect.Method.invokeNative(Native Method)
05-22 17:54:30.476: E/AndroidRuntime(575): at java.lang.reflect.Method.invoke(Method.java:511)
05-22 17:54:30.476: E/AndroidRuntime(575): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809)
05-22 17:54:30.476: E/AndroidRuntime(575): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576)
05-22 17:54:30.476: E/AndroidRuntime(575): at dalvik.system.NativeStart.main(Native Method)
05-22 17:54:30.476: E/AndroidRuntime(575): Caused by: java.lang.ClassNotFoundException: com.urbanairship.UrbanAirshipProvider
05-22 17:54:30.476: E/AndroidRuntime(575): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
05-22 17:54:30.476: E/AndroidRuntime(575): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
05-22 17:54:30.476: E/AndroidRuntime(575): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
05-22 17:54:30.476: E/AndroidRuntime(575): at android.app.ActivityThread.installProvider(ActivityThread.java:4274)
05-22 17:54:30.476: E/AndroidRuntime(575): ... 12 more

我在我的项目中使用 urbanairship-lib-2.1.4.jar。是否有任何兼容性问题或什么?

最佳答案

是啊!刚刚找到了解决方案!问题出在最新更新中引入的 Android Private Libraries 中。出于某种原因,默认情况下它们在项目属性中被勾选关闭

只需转到 Project -> Properties -> Java Build Path -> Order and Export 并检查 Android Private Libraries 。这解决了我的问题。

关于android - Prolem 使用 urbanairship Provider android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16692402/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com