Java 如何修复ClassNotFoundException生成的错误
我刚刚将我的一个项目复制到一个新的项目空间,当我从新创建的项目运行应用程序时,它崩溃了,Java 如何修复ClassNotFoundException生成的错误,java,android,Java,Android,我刚刚将我的一个项目复制到一个新的项目空间,当我从新创建的项目运行应用程序时,它崩溃了,logcat生成以下错误。我检查了清单文件,似乎没有什么问题。请帮助我找到导致崩溃的错误 更新的清单文件: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.meetingpointlo
logcat
生成以下错误。我检查了清单文件
,似乎没有什么问题。请帮助我找到导致崩溃的错误
更新的清单文件:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.meetingpointlocator_03test00"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />
<uses-feature android:name="android.hardware.camera" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.meetingpointlocator_03test00.Intro"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.example.meetingpointlocator_03test00.MainMenuActivity"
android:label="@string/title_activity_mpl" >
</activity>
<activity
android:name="com.example.meetingpointlocator_03test00.AddNewLocationActivity"
android:label="@string/title_activity_add_new_location" >
</activity>
<activity
android:name="com.example.meetingpointlocator_03test00.MeetingPointFix"
android:label="@string/title_activity_meeting_point_fix" >
</activity>
<activity
android:name="com.example.meetingpointlocator_03test00.AHActivity"
android:label="@string/title_activity_navigate"
android:screenOrientation="landscape"
android:theme="@style/Theme.AppCompat.Light"
android:configChanges="keyboardHidden|orientation">
</activity>
</application>
您似乎正在调用一个不在构建路径中的库。 这个类“com.example.meetingpointlocator_03Test00.Intro”是什么? 据我所知,java中的类应该是*.java
com.example.meetingpointlocator_03Test00.Intro
看起来,在你的清单文件中,启动intro应用程序时出现了某种拼写错误,包名为
com.example.meetingpointlocator\u 03test00.Intro
的活动是,在异常情况下,包名为:com.example.meetingpointlocator\u 03test00.Intro
的活动是:。希望能解决你的问题 你能发布你的清单吗请查看更新。舱单已经寄出了,对不起。项目中是否存在com.example.meetingpointlocator_03test00.Intro.java?这是一项活动吗?事实上,是的,我修复了拼写,但当我启动应用程序时,它仍然崩溃。现在我正在清理项目,也许这将有助于在清理项目日志后生成相同的错误。请查看更新的清单和logcat错误。请查看此处的所有答案。这可能会解决您的问题:
com.example.meetingpointlocator_03Test00.Intro