Android: Unable to instantiate activity ComponentInfo

一曲冷凌霜 提交于 2019-11-29 08:35:18

The problem was with the Holoeverywhere. what I have done in order to solve the problem was to go to the properties of my project -> Java build path -> order and export and then select the option android private libraries. then i have added the android:name="org.holoeverywhere.app.Application" inside of the tag in the manifest.

This is my manifest. Works for me. You need android:name="MyApp" in application declaration.

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.georgepanayi.mixfmcyprus.radio"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="10"
        android:targetSdkVersion="17" />

    <instrumentation android:label="TestStack" android:name=".Main_Activity" android:targetPackage="com.georgepanayi.mixfmcyprus.radio"/>

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:name=".Main_Activity"
        android:theme="@style/AppTheme" >

        <activity
            android:name=".Main_Activity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    </application>

</manifest>

You can see the project demo https://github.com/Prototik/HoloEverywhere.git

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!