gpt4 book ai didi

android - 无法找到作为异步任务的显式 Activity 类

转载 作者:行者123 更新时间:2023-11-29 16:59:18 31 4
gpt4 key购买 nike

我遇到异常

android.content.ActivityNotFoundException: Unable to find explicit activity class {com.as.as/com.as.as.LoginActivity$myTask}; have you declared this activity in your AndroidManifest.xml?

不知道这里有什么问题

<application
android:name=".ObjectClass.AppController"
android:allowBackup="true"
android:icon="@drawable/app_logo"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">


<activity
android:name=".LoginActivity"
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=".PersonalDetails"
android:label="@string/title_activity_personal_details"
android:theme="@style/AppTheme.NoActionBar" />
<activity android:name=".SignUpRegistration.SignUp" />
<activity
android:name="com.intsig.ccrengine.ISCardScanActivity"
android:label="@string/app_name" />

最佳答案

First try to clean and build project again and then try.

If it's not working then append a full path to your LoginActivity.

例如您的包名称是 com.exmaple 然后您在 list 中写入 com.example.LoginActivity 而不仅仅是 .LoginActivity

关于android - 无法找到作为异步任务的显式 Activity 类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43542659/

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