我目前正在开发一个即时应用程序,为此我已将我的单体应用程序重组为功能模块。 在 Android Studio Canary 3 之前,一切都正常运行,但是在更新到 Android Studio Canary 4 之后,我的项目无法构建并出现以下错误:
A problem was found with the configuration of task ':minimoBase:dataBindingExportBuildInfoDebugAndroidTest'.
> Directory '/Users/nayak.vishal/projectData/minimo_instant_app_project/putica-client-android-
native/minimoBase/build/intermediates/data-binding-info/androidTest/debug'
specified for property 'xmlOutFolder' does not exist.
最佳答案
以下过程可作为此问题的解决方法:
在gradle命令行执行以下构建命令
1) 清理干净
2) gradlew:appModule:assembleDebug
- here appModule is the name of the app module for building the installable apk
- the build is successful and the debug apk generated in the output folder can be installed successfully
3) gradlew:instantAppModule:assembleDebug
- here instantAppModule is the name of the instant app module
- the build is successful and the instant app apks can be installed and launched via deep link
一旦上述命令行构建成功,通过 Android Studio Canary 4 构建也将停止抛出构建错误。
关于android - Android Studio 3.0 Canary 4 构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44754019/