【问题标题】:error when i run flutter build in terminal当我在终端中运行颤振构建时出错
【发布时间】:2021-10-25 00:40:42
【问题描述】:

我尝试在终端中运行 flutter build apk --release 以输出我的 apk,但它在终端中显示 e: java.rmi.NoSuchObjectException: no such object in table 错误,这是终端中的所有命令:


 Building with sound null safety 

Checking the license for package Android SDK Platform 29 in C:\Newfolder\Sdk\licenses
License for package Android SDK Platform 29 accepted.
Preparing "Install Android SDK Platform 29 (revision: 5)".
"Install Android SDK Platform 29 (revision: 5)" ready.
Installing Android SDK Platform 29 in C:\Newfolder\Sdk\platforms\android-29
"Install Android SDK Platform 29 (revision: 5)" complete.
"Install Android SDK Platform 29 (revision: 5)" finished.
e: java.rmi.NoSuchObjectException: no such object in table
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done                     304.8s
√  Built build\app\outputs\flutter-apk\app-release.apk (18.1MB).```

【问题讨论】:

  • 在终端中运行一次flutter doctor,然后发布输出
  • 我跑了,但它说没有问题
  • 我可以知道你到底想做什么?

标签: java android flutter android-studio dart


【解决方案1】:

尝试运行命令:flutter clean

【讨论】:

    【解决方案2】:

    我推荐使用 IntelliJ IDEA,因为它是一款非常棒的编码软件。它有很多功能并且有一个按钮:Build->Flutter->Build APK

    【讨论】:

      猜你喜欢
      • 2019-04-17
      • 2020-04-14
      • 2021-08-10
      • 2021-04-22
      • 1970-01-01
      • 2021-06-10
      • 2022-07-07
      • 2021-01-05
      • 2021-05-13
      相关资源
      最近更新 更多