There is an error launching activity
, unfortunately I assume it is not connected strictly with the project due to the fact the app launches on genymotion
emulator, but does not on physical device.
有一个错误启动活动,不幸的是我认为它没有严格地与项目连接,因为应用程序在genymotion模拟器上启动,但在物理设备上没有。
When I run adb devices
with the real one connected i get:
当我运行adb设备与真正的连接我得到:
List of devices attached
0009215b1eef4f device
AndroidManifest.xml
has not any permissions required set and device has sufficient api version
.
AndroidManifest.xml没有任何必需的权限集,并且设备有足够的api版本。
Regards
2 个解决方案
#1
9
Simply add:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
on AndroidManifest.xml into the tag:
在AndroidManifest.xml上进入标签:
<activity>
Hope it helps
希望能帮助到你
#2
8
The issue was with Launcher selection in Android Studio. To improve testing speed of application module there was selected other Activity as Launcher
(in run properties) than specified in manifest.xml. Strange that it worked even on emulator..
问题在于Android Studio中的Launcher选择。为了提高应用程序模块的测试速度,选择了其他Activity作为Launcher(在运行属性中),而不是在manifest.xml中指定的。奇怪它甚至在模拟器上工作..
The solution is simply to change the Launcher to the one set in AndroidManifest.xml
解决方案只是将Launcher更改为AndroidManifest.xml中的一个
#1
9
Simply add:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
on AndroidManifest.xml into the tag:
在AndroidManifest.xml上进入标签:
<activity>
Hope it helps
希望能帮助到你
#2
8
The issue was with Launcher selection in Android Studio. To improve testing speed of application module there was selected other Activity as Launcher
(in run properties) than specified in manifest.xml. Strange that it worked even on emulator..
问题在于Android Studio中的Launcher选择。为了提高应用程序模块的测试速度,选择了其他Activity作为Launcher(在运行属性中),而不是在manifest.xml中指定的。奇怪它甚至在模拟器上工作..
The solution is simply to change the Launcher to the one set in AndroidManifest.xml
解决方案只是将Launcher更改为AndroidManifest.xml中的一个