【问题标题】:app, built in android studio, not installed in android less version than 7.0应用程序,内置于android studio,未安装在低于7.0版本的android中
【发布时间】:2017-04-18 13:36:46
【问题描述】:

我无法在 android 低于 7.0 版本的设备中安装任何内置 android studio 的应用程序

我的构建等级是:

    apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    defaultConfig {
        applicationId "com.tests.ahmadkhan.myapplication"
        minSdkVersion 19
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

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.3.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:support-annotations:25.3.1'
}

该项目是一个简单的项目... 这即使在 hello world 项目中也不起作用...

【问题讨论】:

  • 您尝试安装什么/如何安装它?您无法安装用于即时运行的 apk。
  • 我尝试在android 6上安装它,但它没有再次安装
  • 我在我的 android 6 设备上构建和安装

标签: android android-studio gradle


【解决方案1】:

您已将 minSdkVersion 设置为 19,这意味着您的应用将在 api 级别 19 及更高版本上运行,即 Android OS 4.4 至 7.1(假设 7.1 是迄今为止的最新版本)

【讨论】:

  • 我尝试在android 6上安装它,但它没有再次安装
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-12-18
  • 1970-01-01
  • 1970-01-01
  • 2013-12-17
  • 1970-01-01
相关资源
最近更新 更多