我有一个 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.
当我点击 Sync Project with Gradle files 时,它输出:
Project Sync The project 'TrackingEng' is not a Gradle-based project
运行设置: