V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Dnlyao
V2EX  ›  Flutter

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

  •  
  •   Dnlyao · Feb 6 · 1087 views
    This topic created in 81 days ago, the information mentioned may be changed or developed.
    * 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
       Feb 9
    检查 android studio 设置的 jdk 版本和路径,然后升级 android studio 版本,旧版的 android studio 不支持高版本 gradle 。也换了个 aar 包。大致是这样解决了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5732 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 06:04 · PVG 14:04 · LAX 23:04 · JFK 02:04
    ♥ Do have faith in what you're doing.