How can I use 2.01 functions, but still support 1.5 with one apk?

I would like my activity to use some 2.01 features, but I need it to work on 1.5 devices. I understand that 1.5 devices will not be able to run 2.01 functions, and that’s fine. But I still want them to be able to use the rest of the activity.

I use Eclipse as my IDE, how to set up a project correctly? What will I have to follow? and what does checkerror mean?

+3
source share
3 answers

VerifyError Android java.lang.VerifyError? JAR "dx" , Android SDK.

Android :

API-, , android:minSdkVersion, , ​​ , .

, ( 1,5 ), SDK 2.0.

OP nathan:

2.01, sdk = 3, avd 1.5.


:

VerifyErrors

:

Android 2.x (NoSuchMethod, ClassNotFound) , "VerifyError" . , , , .

- android:process=":otherProcess" tag.


, :

VerifyError, , .
. can not catch java.lang.VerifyError

, " API" API

+2

. Android, eclipse ide, , 1.5 . Or 2.01 .. @http://developer.android.com/resources/articles/backward-compatibility.html , , eclipse , . minsdkversion 3 android.

0

Source: https://habr.com/ru/post/1735176/


All Articles