我试图在google play上发布我的应用3次,所有发布的apk都支持设备:0状态 我已经阅读了Stackoverflow上存在的所有主题(1,2,3),我做了任何程序员建议的但是没有工作
这是从控制台enter image description here
拍摄的屏幕截图这是我的清单代码
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.Flashlight_widget"
android:installLocation="auto">
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="25" />
<uses-feature android:name="android.hardware.camera.flash" android:required="false" />
<uses-feature android:name="android.hardware.sensor.accelerometer" android:required="false" />
<uses-feature android:name="android.hardware.camera"
android:required="false" />
<uses-feature android:name="android.hardware.camera.setParameters" />
<uses-permission
android:name="android.permission.FLASHLIGHT"
android:permissionGroup="android.permission-group.HARDWARE_CONTROLS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.hardware.Camera.flash"/>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application
android:name=""com.Flashlight_widget""
android:allowBackup="true"
android:icon="@mipmap/icon"
android:label="@string/FlashLight_Shake_Widget"
android:supportsRtl="true"
android:theme="@android:style/Theme.NoTitleBar">
<activity
android:name="com.Flashlight_widget".MainActivity"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service
android:name="com.Flashlight_widget.FlashLightIntentService"
android:exported="false"
/>
<receiver android:name="com.Flashlight_widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget_info" />
</receiver>
<activity android:name="com.Flashlight_widget.ResultActivity"/>
<service
android:name="com.Flashlight_widget.MyAndroidFirebaseMsgService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>
<service
android:name="com.Flashlight_widget.MyAndroidFirebaseInstanceIdService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
</intent-filter>
</service>
</application>
</manifest>
这是我的build.gradle
:
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.0"
defaultConfig {
applicationId "com.Flashlight_widget"
minSdkVersion 11
targetSdkVersion 26
versionCode 5
versionName "2.5"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile 'com.google.firebase:firebase-messaging:9.0.0'
compile 'com.google.firebase:firebase-core:9.0.2'
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha7'
}
apply plugin: 'com.google.gms.google-services'
答案 0 :(得分:1)
从Android
查看Gradle Scripts
然后build.gradle(Module: app)
,看看您的文件中的minSdkVersion是否与build.gradle
中的minSdkVersion匹配。
使用android.hardware.sensor.accelerometer
android.hardware.sensor.ACCELEROMETER
删除此:
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="25" />
从Manifest并从build.gradle(Module: app)
更改minSdkVersion。