我在使用 Google Play 商店时遇到问题,它坚持认为我的应用程序受 0 台设备支持。我已经尝试了我在 SO 和其他地方找到的所有解决方案。这与 apk 处于非活动状态无关,它被默认激活,我什至尝试停用并重新激活它。
我已经在我的 Galaxy Nexus 上对其进行了测试,它运行良好,没有理由让它与每一个 Android 设备都不兼容……
这是我的清单文件:
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="17" />
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="true"
android:xlargeScreens="true" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-feature
android:name="android.hardware.accelerometer"
android:required="true" />
<uses-feature
android:name="android.hardware.screen.portrait"
android:required="false" />
完整的项目源代码可以在这里找到: https ://github.com/Nurgak/Android-Bluetooth-Remote-Control 因为它是开源的。
这是我在 Google Play 上看到的。
5个特点是
android.hardware.ACCELEROMETER
android.hardware.BLUETOOTH
android.hardware.CAMERA
android.hardware.camera.AUTOFOCUS
android.hardware.TOUCHSCREEN
和4个权限
android.permission.BLUETOOTH
android.permission.BLUETOOTH_ADMIN
android.permission.CAMERA
android.permission.INTERNET
我也对他们的支持感到非常震惊,我只是得到了通用的“嘿,你看过我们的常见问题解答了吗?”回复电子邮件。
原文由 Solenoid 发布,翻译遵循 CC BY-SA 4.0 许可协议
com.bluetooth
更改为com.nurgak.bluetoothremote
uses-feature"-tag
设置为false