Instant Run's operation has affected the code, causing the Android app to start a flash-back issue

Source: Internet
Author: User
Tags stack trace

transferred from yuhc163 original Android launcher app Java.lang.NoClassDefFoundError:Class not found using the boot Class loader; no stack tra

Run the app in Android Studio by clicking Running, but it will be generated with an APK, install to the system with ADB, prompting the app to be installed successfully

But running the app is a hint that * * The app has stopped running, see log to find the following information

Caused by: Java.lang.NoClassDefFoundError: class not found using the boot Class loader; no stack trace available

Caused by: java.lang.ClassNotFoundException: didn ' t find class Com.tct.weather.provider.WeatherContentProvider "

Java.lang.RuntimeException:Unable to get provider Com.tct.weather.provider.WeatherContentProvider: Java.lang.ClassNotFoundException:Didn ' t find class ' Com.tct.weat

Obviously already installed the application will not find the class? At the same time, Android studio Click Run is OK, the app is no problem, follow up to find information, found the reason:

In Android Studio 2.3 or later, a Instant Run operation affected our code and required disable

instant Run method is as follows:

Build, execution, Deployment, Settings, File-----Instant Run

Instant Run's operation has affected the code, causing the Android app to start a flash-back issue

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.