Android Studio 4.1 ANDROID_AAPT_IGNORE

han*_*ach 7 android android-studio android-studio-4.1

当我使用此更改切换到 Android Studio 4.1 时https://github.com/MikeOrtiz/TouchImageView/pull/267/files

classpath 'com.android.tools.build:gradle:4.1.0-alpha10'
Run Code Online (Sandbox Code Playgroud)

我遇到了 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.
Run Code Online (Sandbox Code Playgroud)

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

EAK*_*EAM 7

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

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


han*_*ach 1

我为此打开了一个Google 问题

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