【问题标题】:Emulators are not showing in Android Studio模拟器未在 Android Studio 中显示
【发布时间】:2016-12-28 08:32:01
【问题描述】:

在 Android Studio 中,模拟器没有显示。我尝试禁用 ADB 集成。但这对我不起作用。

请给我解决这个问题。

【问题讨论】:

    标签: android android-emulator


    【解决方案1】:

    您的项目可能与目标模拟器不兼容(API 版本)。如果 targetSDK 和 minimumSdk 版本低于或等于模拟器的 sdk 版本,请检查 build.gradle 文件。

    确保您的compiledSdkVersion 与minSdkVersion 匹配并受​​targetSdkVersion 支持。例如:

    apply plugin: 'com.android.application'
    
    android {
        compileSdkVersion 23
        buildToolsVersion "24.0.0"
    
        defaultConfig {
            applicationId "zeta.sqlitetest3"
            minSdkVersion 16
            targetSdkVersion 23
            versionCode 1
            versionName "1.0"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }
    
    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        testCompile 'junit:junit:4.12'
        compile 'com.android.support:appcompat-v7:23.4.0'
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-04-10
      • 2017-08-06
      • 2021-08-31
      • 2021-08-04
      • 1970-01-01
      • 2021-06-18
      • 2020-10-28
      • 2016-08-04
      相关资源
      最近更新 更多