我在Android Studio中開發了我的第一個Android應用程序。我開發了一個簡單的FlashLight應用程序。它在多個設備上運行良好,但是當我將它發佈到playstore時存在兼容性問題。請幫助我。發佈我的第一個Android應用程序在PlayStore上支持Android設備0
支持的Android設備= 0設備
Mainfest.xml文件
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.dhairya.fastflashlight">
<uses-permission android:name="android.permission.CAMERA"></uses-permission>
<uses-feature android:name="android.hardware.Camera"></uses-feature>
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:requiresSmallestWidthDp="720"
android:resizeable="true"
android:smallScreens="true"
android:xlargeScreens="true" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_flash"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name="dc.suvy.dhairya.fastflashlight.Flashlight">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
構建搖籃
android {
compileSdkVersion 23
buildToolsVersion "24.0.0"
defaultConfig {
applicationId "dc.suvy.dhairya.fastflashlight"
minSdkVersion 9
targetSdkVersion 9
versionCode 2
versionName '2.0'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'commons-io:commons-io:2.4'
}
您targetSdkVersion爲9。我認爲這是主要的問題。 –
我該如何修復它,我應該做到23?@KrupalShah –