I try to run flutter build apk --release
in terminal to output my apk but it shows e: java.rmi.NoSuchObjectException: no such object in table
error in terminal here’s all command in terminal:
Building with sound null safety
Checking the license for package Android SDK Platform 29 in C:NewfolderSdklicenses
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:NewfolderSdkplatformsandroid-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 buildappoutputsflutter-apkapp-release.apk (18.1MB).```
2
Answers
Try running the command:
flutter clean
I recommend to use IntelliJ IDEA because it’s a really great coding software. It has loads of function and there’s a button: Build->Flutter->Build APK