我正在尝试发布应用,但无论我尝试什么,开发者控制台都会报告支持的设备为零。 谷歌游戏商店显示支持零设备,我不知道为什么。我到处搜索,但没有得到答案 我试图改变清单。 有人能帮助我吗?
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity" android:screenOrientation="portrait">a <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".InfoActivity" android:screenOrientation="portrait"></activity> </application> </manifest>
GRADLE
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "24.0.0"
defaultConfig {
applicationId "com.allegretti.countrypowerstation"
minSdkVersion 18
targetSdkVersion 23
versionCode 4
versionName "1.0.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
useLibrary 'org.apache.http.legacy'
}
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:23.4.0'
compile 'org.apache.directory.studio:org.apache.commons.io:2.4'
testCompile 'junit:junit:4.12'
}
有人可以帮助我吗?
UPDATE 该库导致问题 编译&#39; org.apache.directory.studio:org.apache.commons.io:2.4&#39;
答案 0 :(得分:1)
尝试更改 - &gt;编译'org.apache.directory.studio:org.apache.commons.io:2.4' 至 编译'commons-io:commons-io:2.4'
答案 1 :(得分:0)
这个库导致问题编译'org.apache.directory.studio:org.apache.commons.io:2.4'