V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Dnlyao
V2EX  ›  Flutter

flutter 引入 aar 包,运行报错,版本 3.38.9

  •  
  •   Dnlyao · 5 天前 · 318 次点击
    * What went wrong:
    Execution failed for task ':app:compileDebugKotlin'.
    > A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
    > Compilation error. See log for more details

    * 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 2m 42s
    Running Gradle task 'assembleDebug'... 163.2s
    Error: Gradle task assembleDebug failed with exit code 1

    不管使用 java ,或者 kotlin 都是显示失败,然后找不到 aar 依赖。而且在 android studio 打开文件,都是显示 import 找不到的。如何解决。
    Dnlyao
        1
    Dnlyao  
    OP
       3 天前
    检查 android studio 设置的 jdk 版本和路径,然后升级 android studio 版本,旧版的 android studio 不支持高版本 gradle 。也换了个 aar 包。大致是这样解决了。
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   4140 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 03:35 · PVG 11:35 · LAX 19:35 · JFK 22:35
    ♥ Do have faith in what you're doing.