I/dalvikvm(11899): Turning on JNI app bug workarounds for target SDK version 8

http://stackoverflow.com/questions/16276438/android-ics-turning-on-jni-app-bug-workarounds-for-target-sdk-version-8


My android app has one background service. I observed that this service is restarting and not showing any exception in debug log also.

I taken more interest to identify the problem with my app and finally found one special message Turning on JNI app bug workarounds for target SDK version 8... in debug log.

After this message appears, I saw message as my service created and printing all debug messages of my application as when we launch first time.

My app's ,manifest file has <uses-sdk android:minSdkVersion="8" />

and i am using Android 4.0 Samsung Galaxy S Duos mobile phone to test my app.

Can anybody please suggest the solution or what is the exact problem with my app.

Or please tell me if anything I missed in my app's manifest, because I am new to Android 4.0.





The "Turning on JNI app bug workarounds for target SDK version 8" message is not a bug, it's just the system informing you that it is turning on some compatibility features due to the fact that your device is running Android 4+ while the code is compiled for an older version (API level 8).

So whatever causes your problem is not this logcat line!

Just replace your Manifest's string

<uses-sdk         
    android:targetSdkVersion="8"/>

to

<uses-sdk 
    android:targetSdkVersion="14"/>

And don't forget to download 14 SDK version.

share | improve this answer
 
If I use target SDK version 14, will my app works on lower versions ? –  Yugandhar Babu  Jun 10 at 5:06
 
I think it won't work correct (if does). If you need lower APIs and can't refuse using them, you'd better just ignore this warning or create 2 different versions for higher and lower APIs. –  Dmitry  Jun 10 at 9:27


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值