我正在尝试在Android枚举器上启动应用程序,但是它没有启动:
niko@desk :~/android-sdk$ ./platform-tools/adb shell cmd activity start-activity org.afterether.wallet
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] pkg=org.afterether.wallet }
Error: Activity not started, unable to resolve Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=org.afterether.wallet }
niko@desk :~/android-sdk$ platform-tools/adb shell 'pm list packages -f'|grep -i after
package:/data/app/org.afterether.wallet-2gvsNvL7K3-pb1CdEr0SHQ==/base.apk=org.afterether.wallet
niko@desk :~/android-sdk$
在logcat上,我只能看到1行:
04-30 19:14:06.163 12578 13821 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=org.afterether.wallet} from uid 2000
这仅在Android API 28上发生,我可以在26日完美启动该应用程序。我正在使用x86 32位模拟器进行这些测试。点击图标应用可以起作用,它仅在从adb
我的主要问题是:我应该如何调试以找出为什么它无法启动我的App?
我的清单是这样开始的:
<?xml version="1.0"?>
<manifest package="org.afterether.wallet" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.0" android:versionCode="1" android:installLocation="auto">
<application android:hardwareAccelerated="true" android:name="org.qtproject.qt5.android.bindings.QtApplication" android:label="-- %%INSERT_APP_NAME%% --" android:icon="@drawable/icon">
<activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation" android:name="org.afterether.wallet.QShareActivity" android:label="-- %%INSERT_APP_NAME%% --" android:screenOrientation="unspecified" android:theme="@style/AppTheme" android:launchMode="singleInstance" android:taskAffinity="">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>