Android自定义sdk编译版本,编译版本与最低要求版本Android

When compiling a Java application with a Java 7 compiler, you can’t

use it with a Java 6 interpreter. The interpreter will tell you, that

it can’t interpret the produced byte-code, even thought you’re not

using any Java 7 language features. If you want to compile with the

latest compiler but make your byte-code runnable on older JVM

instances, you’ll need to tell the compiler to do so (using the

-target-flag).

In Android, you can declare what platform-versions you support in your

manifest-file, using the -element and it’s

android:minSdkVersion and android:targetSdkVersion-attributes. The

difference between those “targeting mechanics” is, that Android does

not care against which platform version the application was compiled.

If you declare your application to be compatible with API Level 4,

Android will happily install it, even if you compiled it against

Android 4.1 (API Level 16).

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值