请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

正在回答 回答被采纳积分+3

1回答

CrazyCodeBoy 2020-10-13 09:04:34

关闭AS重新打开试试

0 回复 有任何疑惑可以回复我~
  • 提问者 慕慕1545788 #1
    重启AS不行。我办公室的电脑上装的AS暂时没发现这个问题,但是家里的AS一直不行。这个是网络问题吗?或者需要装最新版的AS?有个奇怪的现象是公司里的电脑cmd里无论是管理员模式还是普通模式都可以使用flutter doctor来查看信息。但是家里的电脑cmd只有在普通模式下才能flutter doctor来查看信息,使用管理员模式下反而不能使用flutter doctor来查看信息,并且cmd一直不会返回信息。
    回复 有任何疑惑可以回复我~ 2020-10-13 09:33:07
  • 提问者 慕慕1545788 #2
    出现以下问题:
    Launching lib\main.dart on Android SDK built for x86 in debug mode...
    Running Gradle task 'assembleDebug'...
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    A problem occurred configuring root project 'android'.
    > Could not resolve all artifacts for configuration ':classpath'.
       > Could not download kotlin-reflect.jar (org.jetbrains.kotlin:kotlin-reflect:1.3.50)
          > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.3.50/kotlin-reflect-1.3.50.jar'.
             > Connection reset
    
    * 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 7m 17s
    Exception: Gradle task assembleDebug failed with exit code 1
    回复 有任何疑惑可以回复我~ 2020-10-13 21:24:13
  • CrazyCodeBoy 回复 提问者 慕慕1545788 #3
    从log上看是依赖包没有下载下来导致的,给网络加下速多试几次。
    回复 有任何疑惑可以回复我~ 2020-10-14 09:09:41
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信