Unable to instantiate activity ComponentInfo

后端 未结 12 2134
甜味超标
甜味超标 2020-12-11 09:54

I am developing an application for Froyo as minimum version and Gingerbread as the target version. So, the manifest shows:



        
相关标签:
12条回答
  • 2020-12-11 10:09

    You can fix this error by correcting the class name of your activity in your manifest file

    0 讨论(0)
  • 2020-12-11 10:11

    I've fixed this problem easily by restoring the project properties:

    • Right-click on your project
    • Android tools
    • Fix project properties

    Then your dependencies will be restored as new and everything will be ok!

    0 讨论(0)
  • 2020-12-11 10:11

    For me, as it was during an upgrade of phonegap (from 1.4 to 1.8.1 ). I had to update the .project file on root project. I create a new project and compare the new file with the former.

    0 讨论(0)
  • 2020-12-11 10:13

    I solved my issue by checking the Android Private Libraries and Android dependencies under the Order and Export in the Java Build path

    0 讨论(0)
  • 2020-12-11 10:14

    I found this post having similar question and a lot of different possible solutions. However, in my case the problem was in my Android project settings. Somehow my project's Java build path was not linked to the source folder. And thats why my manifest file was unable to find the activity class. I solved this problem by linking the src folder. To do so, right click on the project "properties"->"Java Build Path". Then select the tab "Source". Check if your src folder is listed here. If not, click on "Add Folder..." and then navigate to your src folder of the project.

    0 讨论(0)
  • 2020-12-11 10:15

    At last i solved it by making two android-support-v4.jar the same.. just copy any of the android-support-v4.jar in any of the projects related to your project and replace them..

    using adding this to your android manifest

       <uses-library android:name="com.google.android.maps" />
    
    0 讨论(0)
提交回复
热议问题