我们有一个由外部咨询公司创建的应用程序,我正在尝试对其进行更改。我可以通过运行命令来编译和创建 apk
"gradlew clean build assembleDebug"
从 Windows 命令行
但是当我将它导入 Android Studio 时,我无法从那里构建或运行。错误信息是
Error:Android Source Generator: [myapp-android] AndroidManifest.xml file not found
该文件存在,但充满错误,例如
"cannot resolve symbol "@string/app_name"
validates resources references inside resource.xml files"
等等。
具有定义的 string.xml 文件存在于
myapp-android/myApp/MyApp/src/main/res/values
那么,我该怎么做才能让 Studio 使用的 gradle 看到这个?看起来它没有识别源目录 - 但是当我将它标记为源时,它看不到我尝试导入的任何 android 包。
非常感谢任何帮助。