gpt4 book ai didi

android-studio - 无法在离线模式下运行或构建我的简单应用

转载 作者:行者123 更新时间:2023-12-03 05:27:40 29 4
gpt4 key购买 nike

我没有互联网连接,我是这个Android Studio版本的新手。我能够切换离线模式,但仍然没有运气。

错误输出在这里

error output here

另外,我的gradle设置不完整。附照片。

ALSO the settings of my gradle is incomplete. photos attached.

谢谢你们!

Execution failed for task ':app:mergeDebugResources'. Could not resolve all files for configuration ':app:_internal_aapt2_binary'. Could not resolve com.android.tools.build:aapt2:3.6.1-6040484. Required by: project :app No cached version of com.android.tools.build:aapt2:3.6.1-6040484 available for offline mode. No cached version of com.android.tools.build:aapt2:3.6.1-6040484 available for offline mode.


  • 尝试:
    使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行,以获取更多日志输出。与--scan一起运行以获取完整的见解。
  • https://help.gradle.org上获得更多帮助
  • 最佳答案

    离线模式仅在您解决了项目的所有依赖关系后才起作用。

    如果缺少的依赖项尚未一次下载到本地计算机,则无法从依赖项缓存中检索它们。

    因此,唯一的解决方案是至少使用互联网连接执行一次项目。

    关于android-studio - 无法在离线模式下运行或构建我的简单应用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60684671/

    29 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com