Possible causes of interface errors during redirection

Source: Internet
Author: User

I wrote a new section and found that the default class is correct. The newly created class is correct, and no error is reported on both interfaces.

Previously programmed,
 

Android. content. ActivityNotFoundException: Unable to find explicit activity class {life. xuexi. dierci/life. xuexi. dierci. rgb}; have you declared this activity in your AndroidManifest. xml?

I felt that I did not write any error, and I checked it and did not know where the problem was. (I found that I would not read LogCat)
In fact, no errors have been found on the java interface and the interfaces in rec, but an error occurs when a VM is run.

In fact, you only need to go to the project directory, and the last and third file is AndroidManifest. xml.

Add a line of code
<Application android: icon = "@ drawable/ic_launcher" android: label = "@ string/app_name"> <activity android: name = ". dierciActivity "android: label =" @ string/app_name "> <intent-filter> <action android: name =" android. intent. action. MAIN "/> <category android: name =" android. intent. category. LAUNCHER "/> </intent-filter> </activity> [here] </application>

In the last application, that is, the code for the location difference [here] marked by me:
<Activity android: name = "mmmm"/> among them, mmmm is the class name of the interface to jump.


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.