(解决)安卓无法实例活动ComponentInfo [英] (SOLVED) Android: Unable to instantiate activity ComponentInfo

查看:105
本文介绍了(解决)安卓无法实例活动ComponentInfo的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Android的开发应用程序有问题。我第一次做了一个研究我的错误,我发现还有谁是有像我一样的问题其他人。我读了所有的评论一试过各种方法,但仍我遇到了同样的错误。

I have a problem on android developing app. I made a research first my error and i found out that there are other people who are having the same problem like me. I read all the comments a tried everything but still i'm having the same error.

下面我的错误

05-29 12:39:36.701: E/AndroidRuntime(823): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.georgepanayi.mixfmcyprus.radio/com.georgepanayi.mixfmcyprus.radio.Main_Activity}: java.lang.ClassNotFoundException: Didn't find class "com.georgepanayi.mixfmcyprus.radio.Main_Activity" on path: /data/app/com.georgepanayi.mixfmcyprus.radio-1.apk
05-29 12:39:36.701: E/AndroidRuntime(823):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2106)
05-29 12:39:36.701: E/AndroidRuntime(823):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
05-29 12:39:36.701: E/AndroidRuntime(823):  at android.app.ActivityThread.access$600(ActivityThread.java:141)
05-29 12:39:36.701: E/AndroidRuntime(823):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
05-29 12:39:36.701: E/AndroidRuntime(823):  at android.os.Handler.dispatchMessage(Handler.java:99)
05-29 12:39:36.701: E/AndroidRuntime(823):  at android.os.Looper.loop(Looper.java:137)
05-29 12:39:36.701: E/AndroidRuntime(823):  at android.app.ActivityThread.main(ActivityThread.java:5041)
05-29 12:39:36.701: E/AndroidRuntime(823):  at java.lang.reflect.Method.invokeNative(Native Method)
05-29 12:39:36.701: E/AndroidRuntime(823):  at java.lang.reflect.Method.invoke(Method.java:511)
05-29 12:39:36.701: E/AndroidRuntime(823):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
05-29 12:39:36.701: E/AndroidRuntime(823):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
05-29 12:39:36.701: E/AndroidRuntime(823):  at dalvik.system.NativeStart.main(Native Method)
05-29 12:39:36.701: E/AndroidRuntime(823): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.georgepanayi.mixfmcyprus.radio.Main_Activity" on path: /data/app/com.georgepanayi.mixfmcyprus.radio-1.apk
05-29 12:39:36.701: E/AndroidRuntime(823):  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
05-29 12:39:36.701: E/AndroidRuntime(823):  at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
05-29 12:39:36.701: E/AndroidRuntime(823):  at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
05-29 12:39:36.701: E/AndroidRuntime(823):  at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
05-29 12:39:36.701: E/AndroidRuntime(823):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
05-29 12:39:36.701: E/AndroidRuntime(823):  ... 11 more

我已阅读,问题出在清单中的活动,这是我的阶级和清单 类

I have read that the problem is with the activity on the manifest and here is my class and the manifest class

package com.georgepanayi.mixfmcyprus.radio;

import org.holoeverywhere.app.Activity;

import android.os.Bundle;

public class Main_Activity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_mix_fm__main);
    }

}

清单

<?xml version="1.0" encoding="utf-8"?>
<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" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/Theme.Mixfmradio" >
        <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>

另外,我使用的库,如Holoeverywhere,SherlockActionBar 4.3.1和2.4.1 ViewPagerIndicator

Also I'm using libraries like Holoeverywhere, SherlockActionBar 4.3.1 and ViewPagerIndicator 2.4.1

任何人能发现问题?

感谢您

解决方案:

这个问题是与Holoeverywhere。我已经为解决这一问题做的是去我的项目的属性 - > Java构建路径 - >订单和出口,然后选择该选项Android的私人图书馆。然后我已经添加了android:名字=org.holoeverywhere.app.Application清单中的标记中

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.

推荐答案

这个问题是与Holoeverywhere。我已经为解决这一问题做的是去我的项目的属性 - > Java构建路径 - >订单和出口,然后选择该选项Android的私人图书馆。然后我已经添加了android:NAME =org.holoeverywhere.app.Application清单中的标记中。

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.

这篇关于(解决)安卓无法实例活动ComponentInfo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆