0台设备支持java Android应用程序
我的应用突然在游戏控制台中将受支持的设备显示为0强>
我在谷歌上搜索了一下,发现了一些类似的问题,比如this,但没有一个解决方案对我有效
下面是我的AndroidManifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:安卓="http://schemas.安卓.com/apk/res/安卓"
xmlns:dist="http://schemas.安卓.com/apk/distribution"
xmlns:tools="http://schemas.安卓.com/tools"
package="com.demo.安卓">
<uses-permission 安卓:name="安卓.permission.CAMERA" />
<uses-permission 安卓:name="安卓.permission.INTERNET" />
<uses-permission 安卓:name="安卓.permission.READ_EXTERNAL_STORAGE" />
<uses-permission 安卓:name="安卓.permission.WRITE_EXTERNAL_STORAGE" />
<uses-feature
安卓:name="安卓.hardware.camera"
安卓:required="false" />
<application
安卓:name=".Demo"
安卓:icon="@mipmap/ic_launcher"
安卓:label="@string/app_name"
安卓:roundIcon="@mipmap/ic_launcher_round"
安卓:supportsRtl="true"
安卓:theme="@style/AppTheme">
<activity
安卓:name=".ui.home.HomeActivity"
安卓:theme="@style/AppTheme.NoActionBar"
安卓:windowSoftInputMode="adjustResize">
<intent-filter>
<action 安卓:name="安卓.intent.action.VIEW" />
<category 安卓:name="安卓.intent.category.DEFAULT" />
<category 安卓:name="安卓.intent.category.BROWSABLE" />
<data
安卓:host="demo.com/app"
安卓:scheme="https" />
</intent-filter>
</activity>
<activity
安卓:name=".ui.splash.SplashActivity"
安卓:theme="@style/AppTheme.Launcher">
<intent-filter>
<action 安卓:name="安卓.intent.action.MAIN" />
<action 安卓:name="安卓.intent.action.VIEW" />
<category 安卓:name="安卓.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
有人能帮我吗
# 1 楼答案
这通常是由于添加了权限或使用功能标记,但该值无效。从你分享的内容来看,问题并不明显。您所依赖的某些SDK可以带来其他权限
您可以尝试使用上载的APK运行:
或者,如果您上载应用程序包:
并再次检查权限和使用功能标记
# 2 楼答案
检查gradle中的版本 也许你会选择很高的版本,比如28