我更改了应用的清单,现在无法启动应用。没有图标。但是,当我在设置应用程序管理器下检查安装时,我在那里看到它! 这是怎么回事???我之前使用过相同的权限。我刚刚更改了哪个应用程序是MAIN和启动器。现在看不到应用了。不通过Studio出现或显示在Apps设备中!!!!
更新:创建具有相同权限的新应用并启动确定,因此它似乎不是权限......
DataGirdview.Rows.Insert('rownumber', 'string');
这是日志
Installing com.mycomp.myapp
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.mycomp.myapp"
pkg: /data/local/tmp/com.myapp.
Success
09-21 13:40:43.261 454-499/? W/PackageManager﹕ verifying app can be installed or not
09-21 13:40:49.171 454-499/? W/PackageManager﹕ Unknown permission android.permission.UPDATE_DEVICE_STATE in package com.mycomp.myapp
09-21 13:40:49.171 454-499/? W/PackageManager﹕ Not granting permission android.permission.PACKAGE_USAGE_STATS to package com.mycomp.myapp (protectionLevel=18 flags=0x18be46)
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mycomp.myapp.test"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="24" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.UPDATE_DEVICE_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.EXPAND_STATUS_BAR" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.REORDER_TASKS" />
<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />
<application
android:allowBackup="true"
android:excludeFromRecents="true"
android:icon="@drawable/app_icon"
android:label="@string/app_name"
android:largeHeap="true"
android:theme="@style/AppTheme" >
<activity
android:name="com.mycomp.myapp.test.SplashScreen"
android:label="@string/app_name" >
</activity>
<receiver android:name="com.mycomp.myapp.test.BootReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<service
android:name="com.mycomp.myapp.test.CheckValuesSercice"
android:exported="false" />
<service`enter code here`
android:name="com.mycomp.myapp.test.TestService"
android:exported="false" />
<service
android:name="com.mycomp.myapp.test.ValuesService"
android:exported="false" />
<activity
android:name="com.mycomp.myapp.test.Guest"
android:configChanges="orientation|keyboardHidden" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.mycomp.myapp.test.SetUsageAccessToApp"
android:configChanges="orientation|keyboardHidden" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.mycomp.myapp.test.MainActivity"
android:configChanges="orientation|keyboardHidden" >
</activity>
<activity
android:name="com.mycomp.myapp.test.AddItems"
android:configChanges="orientation|keyboardHidden|screenSize" >
</activity>
<activity
android:name="com.mycomp.myapp.test.TestValues"
android:configChanges="orientation|keyboardHidden" >
</activity>
<activity
android:name="com.mycomp.myapp.test.Login"
android:configChanges="orientation|keyboardHidden" >
</activity>
<activity
android:name="com.mycomp.myapp.test.HomeScreen"
android:configChanges="orientation|keyboardHidden" >
</activity>
<activity
android:name="com.mycomp.myapp.test.Listings"
android:configChanges="orientation|keyboardHidden" >
</activity>
<activity
android:name="com.mycomp.myapp.test.Authorizing"
android:configChanges="orientation|keyboardHidden" >
</activity>
<activity
android:name="com.mycomp.myapp.test.ThemeActivity"
android:configChanges="orientation|keyboardHidden" >
</activity>
<activity
android:name="com.mycomp.myapp.test.EditHelpMessage"
android:configChanges="orientation|keyboardHidden" >
</activity>
<activity
android:name="com.mycomp.myapp.test.Test"
android:configChanges="orientation|keyboardHidden" >
</activity>
<activity
android:name="com.mycomp.myapp.test.ForOther"
android:configChanges="orientation|keyboardHidden" >
</activity>
</application>
</manifest>
所以现在我可以在Setting - &gt; Application Manager下看到它。但不是在设备上的应用程序下。
答案 0 :(得分:1)
您的所有活动似乎都在项目的 test 目录中。如果它不能将此目录识别为测试的默认目录(将在项目视图中以绿色突出显示),请检查您的IDE,因为这意味着不会将类编译到应用程序中。
答案 1 :(得分:0)
确保您正确地从设备中删除应用:转到设置 - &gt;应用。如果您在此处找到您的应用,请选择该应用并在设置菜单中为所有用户执行“删除”。之后尝试再次开启你的应用程序。