使用 Android Studio 3.0 Canary 4 构建错误 [英] Build error with Android Studio 3.0 Canary 4
问题描述
我目前正在开发即时应用程序,为此我已将我的整体应用程序重组为功能模块.一切都在 Android Studio Canary 3 之前启动并运行,但在更新到 Android Studio Canary 4 后,我的项目无法构建并出现以下错误:
I am currently in the process of developing an Instant app, for which I have restructured my monolithic app into feature modules. Everything was up and running till Android Studio canary 3, but after an update to Android Studio Canary 4 my project fails to build with the following error:
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.
推荐答案
以下过程可作为解决此问题的方法:
The following procedure worked as a workaround for this issue:
在gradle命令行执行以下构建命令
Execute the following build commands on the gradle command line
1) gradlew 干净
1) gradlew clean
2) gradlew :appModule:assembleDebug
2) gradlew :appModule:assembleDebug
- 这里的 appModule 是用于构建可安装 apk 的应用模块的名称
- 构建成功,可以成功安装输出文件夹中生成的debug apk
3) gradlew :instantAppModule:assembleDebug
3) gradlew :instantAppModule:assembleDebug
- 这里的 InstantAppModule 是免安装应用模块的名称
- 构建成功,可以通过深层链接安装和启动免安装应用程序
一旦上述命令行构建成功,通过 Android Studio Canary 4 构建也会停止抛出构建错误.
Once the above command line builds are successful, building via Android Studio Canary 4 also stops throwing the build error.
这篇关于使用 Android Studio 3.0 Canary 4 构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!