我没有得到这个问题的解决方案我已经在API级别范围介于19-25之间的设备上测试了我的代码,并且我的代码在每个设备上运行良好,而不是在Play商店中支持我的应用0支持的设备?我跟谷歌谈论它也说你的清单文件有问题并说:
因此,例如使用Nexus 7,它不兼容的原因是由于以下原因。 不支持的框架版本: 17 没有支持的原生平台: armeabi,armeabi-v7a
我仍然没有得到背后的实际问题,请一些人帮助我!!
下面是我的清单文件内容
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="my package name">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CALL_PHONE" android:required="false"/>
<uses-feature android:name="android.hardware.screen.Portrait" android:required="false" />
<uses-feature android:name="android.hardware.telephony" android:required="false" />
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="25" />
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true"/>
<application
android:name="ABC"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name="SomeActivity"
android:screenOrientation="sensorPortrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
......
</application>
</manifest >
下面是我的gradle文件内容:
uildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
compileSdkVersion 25
buildToolsVersion '25.0.3'
defaultConfig {
applicationId "my package name"
minSdkVersion 19
targetSdkVersion 25
versionCode 5
versionName "1.3"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
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:25.0.0'
//---------for retrofit----------
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.google.code.gson:gson:2.7'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.3.1'
compile 'com.squareup.retrofit2:converter-scalars:2.1.0'
//---------
compile 'org.apache.directory.studio:org.apache.commons.io:2.4'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:design:25.0.0'
compile 'de.hdodenhof:circleimageview:2.1.0'
testCompile 'junit:junit:4.12'
//------------- for auto sliding
compile group: 'com.nineoldandroids', name: 'library', version: '2.4.0'
//----- staggered gridview
compile 'com.android.support:cardview-v7:25.0.0'
//-----for zooming
//compile 'com.github.chrisbanes:PhotoView:1.3.0'
compile('com.crashlytics.sdk.android:crashlytics:2.6.5@aar') {
transitive = true;
}
compile project(':photoview')
}
答案 0 :(得分:0)
我认为它应该是“p”ortrait而不是“P”ortrait
<uses-feature android:name="android.hardware.screen.portrait" android:required="false" />
看看这个链接
I set uses-feature android:required="false" but Google play keeps insisting on these features