Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

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? thanks. ps, it fine with 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.

like image 575
David K Avatar asked Nov 20 '14 14:11

David K


2 Answers

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

Wait for Aviary/Adobe to patch it

Check the current Build.VERSION.SDK_INT and disallow Aviary if it is greater than 19.

like image 148
ynnadkrap Avatar answered Oct 08 '22 23:10

ynnadkrap


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. 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.

like image 1
David K Avatar answered Oct 09 '22 00:10

David K