Android xml rendering issue in eclipse?

后端 未结 8 1973
清酒与你
清酒与你 2020-12-31 07:33

On creating new xml files in a project, rendering issue occur with error log as follows:

java.lang.NullPointerException
    Exception details are logged i         


        
相关标签:
8条回答
  • 2020-12-31 07:56

    I have met the same problem When using Eclipse with ADT (both are the latest version).

    It seems like a bug of adt, the only solution I found (but a simple one) is just restart Eclipse, then the errors disappear.

    0 讨论(0)
  • 2020-12-31 07:58

    I restarted my eclipse. Its working fine now. The problem is sdk is not loaded properly in my eclipse.

    Try to start eclipse otherwise once check your sdk manager is everything installed or not.

    0 讨论(0)
  • 2020-12-31 08:00

    Have you used any fragment in your xml? please add the library supported for fragmnet named "android-support-v7-appcompat"

    0 讨论(0)
  • 2020-12-31 08:08

    I just got the same error and have solved this.

    I've created a new project and selected API 21. After the project was created I changed in the file AndroidManifest.xml:

    android:targetSdkVersion="21" 
    

    to

    android:targetSdkVersion="22"
    
    0 讨论(0)
  • 2020-12-31 08:12

    Google has been deprecated the Class ActionBarActivity.If your 'Activity Class' extends it, this error occurs.

    1. First Change the ActionBarActivityto Activity and save Changes.
    2. Then, restart your IDE and see error is fixed.
    0 讨论(0)
  • 2020-12-31 08:12

    I start my eclipse again it works fine now. Also in some cases it might occur on creating a new activity, in that case you need to remove some access generated code in AndroidManifest.xml file.

    0 讨论(0)
提交回复
热议问题