【问题标题】:Android Studio 4.1 ANDROID_AAPT_IGNOREAndroid Studio 4.1 ANDROID_AAPT_IGNORE
【发布时间】:2023-04-09 03:15:02
【问题描述】:

当我切换到带有此更改的 Android Studio 4.1 https://github.com/MikeOrtiz/TouchImageView/pull/267/files

classpath 'com.android.tools.build:gradle:4.1.0-alpha10'

我遇到 https://github.com/MikeOrtiz/TouchImageView/pull/267/checks?check_run_id=737327676

> Could not resolve all dependencies for configuration ':app:releaseRuntimeClasspath'.
   > Could not create task ':app:extractDeepLinksDebug'.
      > Cannot obtain value from provider of environment variable 'ANDROID_AAPT_IGNORE' at configuration time.
        Use a provider returned by 'forUseAtConfigurationTime()' instead.

也许有人知道如何摆脱它?

【问题讨论】:

  • 我有同样的问题,但无法理解为什么......
  • classpath 'com.android.tools.build:gradle:4.1.0-beta01' 解决了它

标签: android android-studio android-studio-4.1


【解决方案1】:

对我来说同样的问题。 似乎是 Gradle 问题(也许应该打开错误报告)

我可以通过将 Gradle 版本降级到 6.5-milestone-1 来临时解决它

【讨论】:

    【解决方案2】:

    我为此开了一个Google issue

    根据https://issuetracker.google.com/issues/157583088中的信息 如果这是同样的问题,它应该在 AGP 4.1 beta 1 中得到解决,该版本暂定于太平洋时间 6 月 10 日星期三上午 10 点发布。

    【讨论】:

    • 用 'com.android.tools.build:gradle:4.1.0-beta01' 解决了
    猜你喜欢
    • 2021-01-30
    • 2021-01-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-05-02
    • 2021-02-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多