i have crashlytics-enabled app (which part of twitter's fabric) , need add jni functionality using android ndk.
i've switched experimental gradle android studio prompted me way:
http://tools.android.com/tech-docs/new-build-system/gradle-experimental
when i've applied necessary changes , tried sync, i've got error:
crashlytics applied project without android plugin. please make sure crashlytics plugin applied after appropriate android plugin project.
i've googled error , found out it's problem between fabric , experimental gradle, , fabric team doesn't seem care fixing time soon: https://twittercommunity.com/t/gradle-experiental-support/53441.
i've stumbled upon issue experimental gradle: android plugin must applied project have no idea there, , i'm not sure if it's right way go?
how can use android ndk and fabric in project?
so gradle-experimental , fabric don't mix.
solution:
1) update latest android studio 2.3.1
2) follow tutorial drop gradle experimental: https://developer.android.com/studio/projects/add-native-code.html
what did create new temporary project c++ support enabled , added blank activity.
then opened current project , temporary project , copied necessary changes own project.
after done (about 1 hour of work) able build c code library, load library project, , make jni calls.
Comments
Post a Comment