错误记录安卓项目编译报错 ( offline mode 错误 )

Posted 韩曙亮

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了错误记录安卓项目编译报错 ( offline mode 错误 )相关的知识,希望对你有一定的参考价值。





一、报错信息



Executing tasks: [:APP:assembleDebug] in project D:\\002_Project\\001_android_Learn\\Project


> Configure project :APP
useNewCruncher has been deprecated. It will be removed in a future version of the gradle plugin. New cruncher is now always enabled.

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':APP:generateJsonModelDebug'.
> Could not resolve all files for configuration ':APP:debugCompileClasspath'.
   > Could not resolve com.writingminds:FFmpegAndroid:0.3.2.
     Required by:
         project :APP
      > No cached version of com.writingminds:FFmpegAndroid:0.3.2 available for offline mode.
      > No cached version of com.writingminds:FFmpegAndroid:0.3.2 available for offline mode.
      > No cached version of com.writingminds:FFmpegAndroid:0.3.2 available for offline mode.
      > No cached version of com.writingminds:FFmpegAndroid:0.3.2 available for offline mode.
      > No cached version of com.writingminds:FFmpegAndroid:0.3.2 available for offline mode.
      > No cached version of com.writingminds:FFmpegAndroid:0.3.2 available for offline mode.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 714ms

在这里插入图片描述





二、解决方案



当前是 离线模式 , 在 Gradle 面板中 , 可以 打开 / 关闭 离线模式 ;

在这里插入图片描述

关闭 离线模式 ;

在这里插入图片描述

以上是关于错误记录安卓项目编译报错 ( offline mode 错误 )的主要内容,如果未能解决你的问题,请参考以下文章

错误记录安卓编译错误 ( Could not find xxx.tools.build:aapt2 )

错误记录安卓 RecyclerView 报错 ( only use immediately and call holder.getAdapterPosition() to look it up )(代

错误记录Unity 安卓打包报错( Platform Android with graphics API OpenGLES3 is not supported with HDRP )

错误记录IntelliJ IDEA 编译 Groovy 项目报错 ( Groovy SDK is not configured for module )

错误记录IntelliJ IDEA 编译 Groovy 项目报错 ( gradle-resources-test:XX: java.lang.NoClassDefFoundError: org )

错误记录Android Studio 编译报错 ( SDK location not found )