【发布时间】:2015-08-22 22:34:02
【问题描述】:
我刚刚尝试发布我的第一个应用程序,但当它最终通过时,它显示为与多个设备不兼容,我一直在搜索,我遇到的每一个修复都对我没有任何帮助。有什么建议吗?
清单
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.customledsupply.ledaudit" >
<uses-feature
android:name="android.hardware.camera2"
android:required="true" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:allowBackup="true"
android:icon="@drawable/cls"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainPage"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".OldLocation"
android:label="@string/title_activity_old_location" >
</activity>
<activity
android:name=".NewLocation"
android:label="@string/title_activity_new_location" >
</activity>
<activity
android:name=".RoomDescription"
android:label="@string/title_activity_room_description" >
</activity>
<activity
android:name=".FixtureDescription"
android:label="@string/title_activity_fixture_description" >
</activity>
<activity
android:name=".RoomList"
android:label="@string/title_activity_room_list" >
</activity>
<activity
android:name=".Summary"
android:label="@string/title_activity_summary" >
</activity>
</application>
</manifest>
分级
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.customledsupply.ledaudit"
minSdkVersion 19
targetSdkVersion 22
versionCode 2
versionName "2.0"
}
signingConfigs {
release {
storeFile file("myreleasekey.keystore")
storePassword "CLS"
keyAlias "Custom LED Supply"
keyPassword "CLS"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'io.realm:realm-android:0.82.0'
}
【问题讨论】:
标签: android android-studio google-play publish