android version 4.3,minSDKversion 15无法在Android设备版本上运行:4.3

Here is my build.gradle code:

android {

compileSdkVersion 25

buildToolsVersion "25.0.1"

defaultConfig {

applicationId "com.example.me.appname"

minSdkVersion 15

targetSdkVersion 25

versionName "1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

multiDexEnabled true

}

buildTypes {

release {

minifyEnabled false

proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

}

}

}

repositories {

mavenCentral()

}

dependencies {

compile fileTree(dir: 'libs', include: ['*.jar'])

androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {

exclude group: 'com.android.support', module: 'support-annotations'

})

compile 'com.android.support:appcompat-v7:25.1.0'

compile 'com.android.support:design:25.1.0'

compile 'com.android.support:support-v4:25.1.0'

testCompile 'junit:junit:4.12'

compile 'com.squareup.picasso:picasso:2.5.2'

compile 'com.facebook.android:facebook-android-sdk:[4,5)'

compile 'com.google.android.gms:play-services:9.6.1'

compile 'com.github.bumptech.glide:glide:3.7.0'

compile 'com.android.support:multidex:1.0.1'

}

我获悉的minSdkVersion是:

min sdk version Is the earliest release of the Android SDK that your application can run on. Usually this is because of a problem with the earlier APIs, lacking functionality, or some other behavioral issue.

target sdk version The version your application was targeted to run on. Ideally this is because of some sort of optimal run conditions. If you were to "make your app for version 19" this is where that would be specified. It may run on earlier or later releases, but this is what you were aiming for. This is mostly to indicate how current your application is for use in the marketplace, etc.

compile sdk version The version of android your IDE (or other means of compiling I suppose) uses to make your app when you publish a .apk file. This is useful for testing your application as it is a common need to compile your app as you develop it. As this will be the version to compile to an APK, it will naturally be the version of your release. Likewise it is advisable to have this match you target sdk version.

我测试在具有Android的版本7.1 API(25)设备与它的工作原理,但是当我测试它的手机,就是Android 4.3版( API 18)它给了我“不幸的是,应用程序已停止”。 真的希望我这次定义了这个问题。 谢谢

2017-02-13

Petar

+1

Android监视器日志? –

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值