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:
- Does flutter report an error after upgrading 2.5?
- [Android] – Android studio + carefree simulator
- Python bug: cannot install ‘Django’. It is a distutils installed project and thus we cannot
- Error:Could not create the Java Virtical Machine. Error: A fatal exception has occurred. program
- Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.* signatures do not match the previously
- ImportError: ‘DLL load failed: %1 is not a valid Win32 application.
- After tensorflow installation, an error occurred while importing: importerror: DLL load failed: the specified module could not be found
- Re installing Android studio always fails to install SDK when installing software (solution)
- Android foundation error failed to install
- The solution of MAC OpenSSL is not available
- Uninstall Windows computer software, so that the uninstall is clean
- Error report in idea compilation Error:Android Dex : [Project] java.lang.OutOfMemoryError : GC overhead limit exceeded
- Screen Overlay Detected
- INSTALL PARSE FAILED INCONSISTENT CERTIFICATES error solution
- This version of chromedriver only supports chrome version 92 crawler simulates the problem of Google plug-in version when the browser clicks and reports an error
- Incomplete and “the Jupiter” distribution was not found
- Problems that Vue project manager can’t open
- The app failed to start because there is no Qt platform to initialize
- Error inflating class android.support.v7.widget.SearchView
- Error after JDK reassembly: Error:opening registry key ‘Software/JavaSoft/JRE’