gpt4 book ai didi

java - 在路径 : DexPathList 上找不到类 "com.imagerecognition.MainActivity"

转载 作者:太空宇宙 更新时间:2023-11-04 13:05:02 24 4
gpt4 key购买 nike

这是我从导师那里得到的项目,在我的测试手机上运行后出现错误。我尝试了 stackovetflow 上的答案,但没有任何帮助。 logcat和manifest.xml如下

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

<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="22" />

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />

<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".TakeBusinessCardActivity"
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=".HistoryActivity" android:label="拍摄历史"/>
<activity android:name=".DecodeActivity" android:label="解码"/>

<activity android:name=".MainActivity">

<intent-filter>
<action android:name="android.intent.action.MAIN" />

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

logcat

最佳答案

尝试改变你的

android:name=".MainActivity"

完全指定的名称

android:name="com.imagerecognition.MainActivity"

有时 eclipse 表现得很奇怪。

如果不行你可以试试这个 unable to find activity

关于java - 在路径 : DexPathList 上找不到类 "com.imagerecognition.MainActivity",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34563988/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com