简体   繁体   中英

Can part of the android app compile at lower API while other part compile at high level?

I am developing an app using android support library v7 whose lowest compile api is 15. However, I want to use a IPCamera control SDK provide by other in my app but I found that the SDk can only be run at API level lower than 11. I am in the same situation as this post:

JNI ERROR (app bug): accessed stale local reference 0xbc00021 (index 8 in a table of size 8)

My problem is this:

JNI ERROR (app bug): accessed stale local reference

I contact the camera company, they said they have stop support this SDK and they refuse to provide me the source code of the jni to let me modify by myself. So what I think is whether I can compile the video play part using lower level API while compile the rest part using high level API? Or how can I avoid this at the error at the Java level? Thank you for reply.

Try the following in the manifest file

<uses-sdk android:minSdkVersion="integer"
          android:targetSdkVersion="integer"
          android:maxSdkVersion="integer" />

For more info about that see uses-sdk .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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