AndroidStudio : Cannot resolve symbol MainActivity

后端 未结 7 1769
说谎
说谎 2021-01-17 13:07

I got an error \"Cannot resolve symbol MainActivity\" on this code.



        
相关标签:
7条回答
  • 2021-01-17 13:48

    In your build.gradle file add the following.

    android {
         sourceSets {
                main.java.srcDirs += 'src/<YOUR DIRECTORY NAME>'
            }
    ...
    ...
    }
    
    0 讨论(0)
提交回复
热议问题