有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java无法实例化活动组件信息{}?

不断得到这个错误。潜伏在20个不同的线程中,所有线程都建议:

  1. 在Java构建路径中打开几个库(它们已经打开)
  2. 检查以确保我的清单当前编码正确(不正确) 当然,会显示)
  3. 检查我的Java编程,确保一切正常 地点和我的意图是集中的

我的LogCat错误:

    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.MolConverter/com.example.MolConverter/MolConverter}: java.lang.classNotFoundException: Didn't find class "com.example.MolConverter.MolConverter" on path: /data/app/com.example.MolConverter-1.apk

我的安卓清单:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:安卓="http://schemas.安卓.com/apk/res/安卓"
package="com.example.molconverter"
安卓:versionCode="1"
安卓:versionName="1.0" >

<uses-sdk
    安卓:minSdkVersion="8"
    安卓:targetSdkVersion="18" />

<application
    安卓:allowBackup="true"
    安卓:icon="@drawable/ic_launcher"
    安卓:label="@string/app_name"
    安卓:theme="@style/AppTheme" >
    <activity
        安卓:name="com.example.molconverter.MolConverter"
        安卓:label="@string/app_name" >
        <intent-filter>
            <action 安卓:name="安卓.intent.action.MAIN" />

            <category 安卓:name="安卓.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

我的Java代码: http://pastebin.com/kxUUt42L

请记住,我并没有对所有内容进行编码,所以这只是一个粗略的过程。我只是想确保我的界面工作正常


共 (0) 个答案