Android Bug Record

Source: Internet
Author: User

1,Unable to resolve target ' android-5 ' unable to resolve destination ' android -5 '

Unable to resolve target ' Google inc.:google apis:7 '

  1> project has an Android manifest file, double click to enter
2>. Switch to the code area and add the phrase <uses-sdk android:minsdkversion= "8"/> under <manifest--->

3>. Directly into the manifest area, click the User SDK to change to your emulator version: 8 or 10

2.No launcher activity found unable to resolve target ' android -5 '

He launch would only sync the application package on the device!

The reason is: in Androidmanifest.xml no add:

1              <intent-filter>2                 <category android:name= "Android.intent.category.LAUNCHER"/>3                  <action android:name= "Android.intent.action.MAIN"/>4             </intent-filter>
View Code

So the initiator could not find the activity to start.

Androidmanifest.xml before the modification:

1<manifest xmlns:android= "Http://schemas.android.com/apk/res/android"2      Package= "Com.test.test"3Android:versioncode= "1"4Android:versionname= "1.0" >5<uses-SDK6android:minsdkversion= "11"7Android:targetsdkversion= "/>"8<Application9Android:allowbackup= "true"Tenandroid:icon= "@drawable/ic_launcher" OneAndroid:label= "@string/app_name" AAndroid:theme= "@style/apptheme" > -<activity android:name= "Com.test.sudoku.Sudoku" > -</activity> the</application> -</manifest>
View Code

After modification:

<manifest xmlns:android= "Http://schemas.android.com/apk/res/android" Package= "Com.test.test"Android:versioncode= "1"Android:versionname= "1.0" > <uses-SDK Android:minsdkversion= "11"android:targetsdkversion= "/>" <Application Android:allowbackup= "true"Android:icon= "@drawable/ic_launcher"Android:label= "@string/app_name"Android:theme= "@style/apptheme" > <activity android:name= "Com.test.sudoku.Sudoku" > <strong><intent -filter> <category android:name= "Android.intent.category.LAUNCHER"/> <action an    Droid:name= "Android.intent.action.MAIN"/> </intent-filter></strong> </activity> </application></manifest>
View Code

Android Bug Record

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.