我的android studio项目正在编译,因为它应该,但有一个恼人的问题。 Android的工作室给了我这样的警告:包名称不对应文件路径
Package name does not correspond to the file path
在源代码中声明的文件的路径是一样的东西com。示例。 但它要求我将其重命名为main.src.com.example。 当我这样做,它不再编译
我的源代码在src /主/ src文件夹
我的build.gradle包含此
sourceSets {
main {
java.srcDirs = ['src']
}
instrumentTest.setRoot('tests')
}
注意这个关键和奇异的提示... https://dayone.me/1Khzxa – Fattie