Android (Eclipse) Novice FAQs Summary (i)

Source: Internet
Author: User

1:JDK cannot be updated
Enter the tool to manually get the mirrored resource and force it instead

2: Error: This version of the rendering library was more recent than your version of AD

Re-select the appropriate version of your SDK in the layout preview

3: When adding a text message with a yellow exclamation mark error (i18n] hardcoded string "This was TextView", should use @string Resource)

You can add <string name= "Message1" >button 2</string> in a string and then reference android:text= "@string/message1" in the layout

4: Error: No Launcher activity found! The launch would only sync the application package on the device!
There is a problem with Intent-filter in the event registration or the SDK version is incorrect.

5: Error: Premature end of file. Try saving it and running it first.

6: Error: The method Setonclicklistener (View.onclicklistener) in the type View are not applicable for the arguments (new Onclick Listener () {})

Check spelling is incorrect

7: When adding the ProgressDialog control if Setcancelabel is set to False then be sure to dismiss (-) in the code to close the dialog box otherwise it can't be canceled. Cannot quit program

8: Error: [accessibility] Missing contentdescription attribute on image

In some controls without text display, such as ImageView and ImageButton, ADT prompts you to define a Android:contentdescription property that describes the effect of the control

9: Error: Cannot make a static reference to the Non-static field viewholder.leftmsg
The first, you can change the variable to static. The second is to instantiate the object, and then use the object name. Variable name to call it (I just called it by using the class name directly ... ZZZ) problem

10: Error: Onclicklistener cannot is resolved to a type
Change "New Onclicklistener" to "new View.onclicklistener" because the Android version has been upgraded to move the "Onclicklistener" interface to the View class
or importing import android.view.View.OnClickListener, or spelling errors

Android (Eclipse) Novice FAQs Summary (i)

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.