【问题标题】:Android Studio - Canary 8: Can't access the resources in feature modules and library modulesAndroid Studio - Canary 8:无法访问功能模块和库模块中的资源
【发布时间】:2017-07-26 16:43:16
【问题描述】:

我无法访问功能模块资源和来自作为 API 包含在 InstantApp 中的另一个库的资源。它识别获取资源的唯一位置是基本要素类。我有以下示例:当我运行应用程序时,功能模块中有几个片段类必须与也位于该模块中的布局一起加载,但它总是失败并显示

Caused by: android.content.res.Resources$NotFoundException: 

试图排除Multi-Dexing,其他模块,也禁用了aapt2,之后它开始抱怨找不到视图。

这可能是什么原因?

A bug is reported here.

【问题讨论】:

    标签: android android-resources android-instant-apps


    【解决方案1】:

    参考Google issue tracker,已经用Android SDK Built-Tools 修复到27.0.2

    请将您的 Android SDK 内置工具更新至 27.0.2 并确保您使用的是 Android Studio 3.0.1 或更高版本。

    如果任何问题仍然存在,请通过Google issue tracker 报告,他们将重新打开进行检查。

    【讨论】:

      猜你喜欢
      • 2018-06-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多