简体   繁体   English

Android L上的Aviary崩溃(5.0)

[英]Aviary crashes on Android L (5.0)

Was just testing my app and found out that after I upgraded my Nexus 5 to Lollipop/5.0, the Aviary SDK I use in it crashes big time. 只是测试我的应用程序,发现在我将Nexus 5升级到Lollipop / 5.0之后,我在其中使用的Aviary SDK崩溃了很长时间。

In a google search I found an SO question asked yesterday with the exact same problem, but that question has been deleted by the user (I was able to view it through Googles cache). 在谷歌搜索中,我发现一个问题,昨天问了同样的问题,但用户已经删除了该问题(我可以通过谷歌缓存查看)。

It said: 它说:

When I run my project on Android L it crash every time with error: 11-20 09:27:38.560: A/art(13974): art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: JNI GetFieldID called with pending exception 'java.lang.NoSuchFieldError' thrown in int com.aviary.android.feather.headless.moa.Moa.n_init(android.content.Context, java.lang.String, int):-2 anyone has any solution for this? 当我在Android L上运行我的项目时,每次都会出现错误:11-20 09:27:38.560:A / art(13974):art / runtime / check_jni.cc:65]应用程序中的JNI检测错误:调用JNI GetFieldID在int com.aviary.android.feather.headless.moa.Moa.n_init(android.content.Context,java.lang.String,int)中抛出异常“java.lang.NoSuchFieldError”: - 2任何人都有任何解决方案为了这? thanks. 谢谢。 ps, it fine with sdk <= 4.4 ps,sdk <= 4.4很好

My problem is exactly the same - It worked pre-5.0 and on my other phone (Galaxy S2 with 4.1.3) it works perfectly. 我的问题完全相同 - 它在5.0之前和我的另一部手机(Galaxy S2与4.1.3)上工作,它完美无缺。

I'm getting the same exact error. 我收到了同样的错误。 It seems like you have three options here. 看来你有三种选择。

Delve into the library source code and try to fix the bug yourself 深入研究库源代码并尝试自行修复bug

Wait for Aviary/Adobe to patch it 等待Aviary / Adob​​e修补它

Check the current Build.VERSION.SDK_INT and disallow Aviary if it is greater than 19. 检查当前的Build.VERSION.SDK_INT,如果它大于19,则禁止Aviary。

I've found out that updating to the latest Aviary SDK version fixes the 5.0 issue - but also requires the developer to switch from ANT to Gradle = From Eclipse to Android Studio. 我发现更新到最新的Aviary SDK版本修复了5.0问题 - 但也要求开发人员从ANT切换到Gradle =从Eclipse切换到Android Studio。 It took me a very long time to get my projects working and building correctly in AS, but now it appears to be working - including Aviary. 我花了很长时间让我的项目在AS工作和正确构建,但现在它似乎正在工作 - 包括Aviary。

The latest aviary sdk both for Android studio and Eclipse is available at Aviary web site. Android工作室和Eclipse的最新aviary sdk可在Aviary网站上获得。

Gradle SDK - Version 3.6.3-Gradle Gradle SDK - 版本3.6.3-Gradle

ANT SDK - Version 3.6.3-ANT ANT SDK - 版本3.6.3-ANT

I was able to test the eclipse version integrated and tested on lollipop emulator. 我能够测试在棒棒糖模拟器上集成和测试的eclipse版本。 There was no any crash. 没有任何崩溃。

Please give feedback, if tested on actual Lollipop android device. 如果在实际的Lollipop android设备上测试,请给出反馈。

Aviary website link Aviary android sdk . Aviary网站链接Aviary android sdk

Switch to adobe creative sdk https://creativesdk.adobe.com/ 切换到adobe creative sdk https://creativesdk.adobe.com/

the Aviary library is now embedded there Aviary图书馆现已嵌入其中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM