[X] I confirm that this issue is not a duplicate and hasn't been reported before.
[X] I agree to follow the project's code of conduct.
[X] I have checked and verified that I am using the latest version of AndroidIDE from GitHub or F-Droid.
Additional terms
[X] I understand that providing incomplete or inaccurate information may result in the issue being closed.
[X] I agree to provide all requested details promptly for a comprehensive bug report.
Issue explanation
Click to close the project, and the Android IDE will restart and crash.
Expected behavior
Multiple, not every time.
Version name
Version : v2.7.1-beta (27102)
CI Build : true
Branch : main
Commit : 55bb46b31
Variant : arm64-v8a (release)
Build type : OFFICIAL
F-Droid Build : false
F-Droid Version : null
F-Droid Version code : -1
SDK Version : 31
Supported ABIs : [arm64-v8a, armeabi-v7a, armeabi]
Manufacturer : HUAWEI
Device : ELS-AN00
Download source
GitHub
Relevant log output
AndroidIDE Crash Report
Version : v2.7.1-beta (27102)
CI Build : true
Branch : main
Commit : 55bb46b31
Variant : arm64-v8a (release)
Build type : OFFICIAL
F-Droid Build : false
F-Droid Version : null
F-Droid Version code : -1
SDK Version : 31
Supported ABIs : [arm64-v8a, armeabi-v7a, armeabi]
Manufacturer : HUAWEI
Device : ELS-AN00
Stacktrace:
android.system.ErrnoException: fstat failed: ENOENT (No such file or directory)
at libcore.io.Linux.fstat(Native Method)
at libcore.io.ForwardingOs.fstat(ForwardingOs.java:264)
at libcore.io.BlockGuardOs.fstat(BlockGuardOs.java:194)
at libcore.io.ForwardingOs.fstat(ForwardingOs.java:264)
at libcore.io.IoBridge.open(IoBridge.java:564)
Caused by: java.io.FileNotFoundException: /storage/emulated/0/AndroidIDEProjects/AltimitSystems-mv-android-client-6b33d6f/.androidide/editor/openedFiles.json: fstat failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:575)
at java.io.FileOutputStream.<init>(FileOutputStream.java:236)
at java.io.FileOutputStream.<init>(FileOutputStream.java:186)
at kotlinx.coroutines.AwaitKt.writeText$default(Unknown Source:23)
at com.itsaky.androidide.viewmodel.EditorViewModel$writeOpenedFiles$1.invokeSuspend(Unknown Source:46)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:8)
at kotlinx.coroutines.DispatchedTask.run(Unknown Source:120)
at androidx.work.Worker$2.run(Unknown Source:39)
at kotlinx.coroutines.scheduling.TaskImpl.run(Unknown Source:2)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(Unknown Source:91)
Issue Checklist
Additional terms
Issue explanation
Click to close the project, and the Android IDE will restart and crash.
Expected behavior
Multiple, not every time.
Version name
Version : v2.7.1-beta (27102) CI Build : true Branch : main Commit : 55bb46b31 Variant : arm64-v8a (release) Build type : OFFICIAL F-Droid Build : false F-Droid Version : null F-Droid Version code : -1 SDK Version : 31 Supported ABIs : [arm64-v8a, armeabi-v7a, armeabi] Manufacturer : HUAWEI Device : ELS-AN00
Download source
GitHub
Relevant log output