我有一个IntelliJ Android项目,该项目已成功导入到Android Studio 0.4.0。如果我不更改清单中的任何内容,它将非常有效。但是,当我想更改启动器活动并运行时,它失败并显示以下错误:
Launching application: com.trackingeng/LandingActivity.
DEVICE SHELL COMMAND: am start -D -n "com.trackingeng/LandingActivity"
-a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] cmp=com.trackingeng/LandingActivity }
Error type 3
Error: Activity class {com.trackingeng/LandingActivity} does not exist.
当我单击与Gradle文件同步项目时,输出:
Project Sync
The project 'TrackingEng' is not a Gradle-based project
运行设置:
AndroidManifest.xml
。
Error: Activity class {...} does not exist.
对我来说还是解决了。