小编Paw*_*wel的帖子

Unresolved class MainActivity

I encountered a problem while using Android Studio. When I'm trying to run any app, I get the same error "Default activity not found", and in my code in line tools:context=".MainActivity", MainActivity is highlighted red and it says "Unresolved class MainActivity". It happens even if I create a brand new "empty activity".

So far I've tried:

  • refreshing IDE cache
  • checked package names in Android manifest and MainActivity
  • selecting a default activity in-app configuration
  • made sure that src is the …

java android-studio

5
推荐指数
2
解决办法
2万
查看次数

标签 统计

android-studio ×1

java ×1