Project in Android Studio won't start - Activity Class Not Specified

前端 未结 4 1366
有刺的猬
有刺的猬 2021-01-04 01:54

According to new IDE for android I decided to import projects from my old eclipse. Unfortunatelly I cannot run them because of information Error: Activity Class not sp

4条回答
  •  再見小時候
    2021-01-04 02:37

    Please check if your src folders are added into the build path. I imported my workspace from Eclipse by export to Gradle, and by default only gen folders were marked as source files. Because of that, IDE cannot compile your source files and cannot launch any activities.

    1. Open Navigator
    2. Open Module settings
    3. From Project Settings choose Modules
    4. Select src and gen folders and marked them as Source folders by right-click on them and select Source

    Hope that will help.

提交回复
热议问题