As for the problem of “Session ‘app’ : error-Launching Activity”, there are two online solutions, but none of them can launch my own
The basic solutions are
- File-> Settings-> Build, Execution,Deployment find Instant Run and remove the pre-instant Run option from tools-& gt; Android -> Sync Project with Gradle Files
Another is that the APP seems to be uninstalled, and the icon can’t be found on the desktop of the phone, but there is still caching; Open the command line directly
adb shell pm uninstall <YourAppPackageName>
Use the command to unload residual applications.
The 2019-10-28 supplement
The command line mentioned above still has some problems in the case of multiple users in the system, which may lead to unclean uninstall, too low version number or inconsistent signature, resulting in the new APK can’t be installed, and can’t be installed when using Android Studio to directly run. At this point, we can adjust the version number to a large number, and then repackage, with adb install XXX
to cover the installation; Install successfully, then manually uninstall, then go to run is OK. More operational references
adb shell
pm --help
div>
Read More:
- Session ‘app’: Error Launching activity
- Session app error launching activity solution
- Error running app: Default Activity Not Found
- Get the startup activity of Android apk
- Error launching Android Studio
- Solution to cross domain sharing problem of session
- Activity of Android studio_ main.xml Unable to preview (gray page)
- “Failed to load session” Ubuntu “problem solving summary
- To solve the problem of failed to load: data in HTML5 game running rmmv locally/ actors.json problem
- Idea for Mac setting JVM running parameters to solve running stuck problem
- failed to lazily initialize a collection of role: ……, no session or session was closed
- Problems encountered by Android Studio: Session’app’: Error Installing APKs
- Cannot run program “make” when compiling APM firmware with eclipse under Windows: launching failed problem
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- Android Studio cannot create a new activity and reports ide internal error occurred
- Solve the problem of error running xxxapplication command line is too long when compiling and running IntelliJ idea
- session_ start(): open(SESSION_ FILE, O_ Rdwr)) failed: processing of permission denied (13)
- Android: Web access activity error: error unknown URL scheme
- Error running app:Instant Run requires Tools | Android Enable ADB integration‘ to be enabled.
- Vscode HTML file auto supplement HTML skeleton failure