gpt4 book ai didi

java - 运行时异常 : Unable to instantiate activity ComponentInfo . .. ClassNotFoundException

转载 作者:行者123 更新时间:2023-11-30 01:03:40 25 4
gpt4 key购买 nike

我收到以下错误:

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com..chat/com..login.LoginActivity}: java.lang.ClassNotFoundException: Didn't find class "com..login.LoginActivity" on path: DexPathList[[zip file "/data/app/com..chat-1/base.apk"],nativeLibraryDirectories=[/data/app/com.*.chat-1/lib/arm, /vendor/lib, /system/lib]]

我已经尝试了所有可以在网上找到的方法,但都没有成功。我可以通过我制作的这个低效脚本来解决这个问题的唯一方法:

#!/usr/bin/env bash

./gradlew app:clean
./gradlew app:installDebug
./gradlew app:clean
./gradlew app:installDebug

/home/adel/Android/Sdk/platform-tools/adb shell am start -n com.*.chat/com.*.login.LoginActivity

notify-send -i icon.png "gradle task done" "check your phone"

它有效,但需要大约 7 分钟才能完成。有没有更快、更有效的方法来做到这一点?

最佳答案

只使用这个:

./gradlew --offline clean assembleDebug

要将 .apk 发送到您的设备,请使用类似的东西:

adb install app/build/output/apk/appDebug.apk

确保您的 apk 文件名和路径正确。

关于java - 运行时异常 : Unable to instantiate activity ComponentInfo . .. ClassNotFoundException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39129477/

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