Adapt grandle to the android.os.Build.VERSION_CODES

0

When I run my application, even though it does not generate an error, it does not appear on any device and generates this message ??

Not targeting the latest versions of Android; compatibility modes apply. Consider testing and updating this version. Consult the android.os.Build.VERSION_CODES javadoc for details.

    
asked by Efrain Mejias C 30.07.2016 в 03:41
source

3 answers

1

You do not have to use android: maxSdkVersion so low, because if you try to run it on a system with more modern android will not work, try changing the maxSdk for something bigger, like 19 (kitkat 4.4.2), by 21 (Lollipop ), or by 23 (Marshmallow). surely with that it will work perfectly!

    
answered by 30.07.2016 в 09:47
1

If your app is not seen on any device, you probably do not have a minSdkVersion defined or your targetSdkVersion is very recent, it is common to declare a minSdkVersion with which your app will work and a targetSdkVersion, for example:

<uses-sdk
        android:minSdkVersion="9"
        android:targetSdkVersion="21" />

Regarding your problem I'll give you as an example: If you had a device with KitKat, android 19 and you had a targetSdkVersion of 17, it would not load, for that you would have to define a value greater than or equal to 19 of targetSdkVersion.

Here you can see the values of the APIs so that you can configure your application correctly.

link

    
answered by 30.07.2016 в 16:49
-1

Make some changes and I'm like that

    
answered by 31.07.2016 в 02:09