我在谷歌游戏中上传了一个apk文件。我已经下载并安装了它。但是打开按钮是禁用的。应用程序不在应用程序列表中。
我的舱单:
<uses-sdk
android:minSdkVersion="13"
android:targetSdkVersion="21" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:enabled="false"
android:icon="@drawable/icon"
android:label="@string/app_name" >
<activity
android:name="bengaltech.criketteam.mycricket.Login"
android:label="@string/app_name"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="SignUp"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Holo.Light.NoActionBar" >
</activity>
<activity
android:name="CreateTeam"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Holo.Light" >
</activity>
<activity
android:name="CountryList"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Holo.Light" >
</activity>
<activity
android:name="PlayerList"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Holo.Light" >
</activity>
<activity
android:name="DashBoardActivity"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Holo.Light" >
</activity>
<activity
android:name="AddTeamName"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Holo.Light" >
</activity>
</application>
我要把名单给你。我在这里增加了许多活动。
发布于 2015-02-14 04:56:46
应该通过移除标记android:enabled="false"
使应用程序启用。
<application
android:allowBackup="true"
android:enabled="false"
android:icon="@drawable/icon"
android:label="@string/app_name" >
通常我们不显式地使用这个标记,只需取默认值。
android:启用 Android系统是否可以实例化应用程序的组件--“真”(如果可以),“假”(False)。如果值为"true",则每个组件的启用属性决定是否启用该组件。如果值为"false",则重写特定于组件的值;所有组件都被禁用。默认值为"true“。
发布于 2015-02-13 20:41:44
如果在从Google下载apk之前在设备上安装了apk(从eclipse或android ),那么它将不会出现在应用程序列表中。试着从你的设备中删除它,然后再从Google下载它。它会解决你的问题。
https://stackoverflow.com/questions/28507748
复制相似问题