android - Android Studio 3.0 Canary 4 构建错误

标签 android android-studio gradle android-instant-apps

我目前正在开发一个即时应用程序,为此我已将我的单体应用程序重组为功能模块。 在 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/

相关文章:

Android HTTP 请求异步任务

android - 即使没有 Activity 运行,如何使服务运行?

java - 启动后关闭放置选择器

Android Studio 3.1.4 Gradle 同步失败

java - 将 Json 从 Android 应用程序发送到本地数据库

android - 错误 : Failed to resolve: fragment Affected Modules: app

Android布局: group dynamic elements

android - 从对象列表中获取特定的object.value

Android Studio - Android 12/API 31 模拟器中缺少 Google Play 商店应用

java - 跨 android 风格使用多个类