我正在为我的项目构建一个应用程序。首先,这是我的模块应用gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.huyhuyhuygmail.mynewproject"
minSdkVersion 19
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.+'
implementation 'com.android.support:design:26.+'
implementation 'com.android.support:cardview-v7:26.+'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.google.firebase:firebase-database:16.0.3'
implementation 'com.google.android.gms:play-services-maps:16.0.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
apply plugin: 'com.google.gms.google-services'
我有2个Android设备,一个运行在Android 4.4.4上,另一个运行在Android 5.1.1上。当我使用这些设备测试我的应用程序时,底部导航栏和应用程序中的一些可绘制/视图只会消失。 当我将Genymotion模拟器与API 26虚拟设备一起使用时,条形图和其他布局很好,但是该模拟器似乎无法与Google Map API一起正常工作,因此我无法使用这些模拟器来运行我的应用。
反正还有降低编译SDK版本的方法,以便我可以在Android设备上顺利运行该应用程序吗?