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.
When I run adb devices
with the real one connected i get:
List of devices attached
0009215b1eef4f device
AndroidManifest.xml
has not any permissions required set and device has sufficient api version
.
Regards
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:
<activity>
Hope it helps
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..
The solution is simply to change the Launcher to the one set in AndroidManifest.xml
As @Tushar Gogna said in the comment.
"This can also happen if you have added android:exported="false" in Manifest"
Adding this as the answer, since it worked for me.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.