[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
I tried to clone a repository and it crashed
Expected behavior
Supposed to not crash
Version name
2.7.0
Download source
GitHub
Relevant log output
AndroidIDE Crash Report
Version : v2.7.0-beta (27001)
CI Build : false
Branch : HEAD
Commit : 062d240e9
Variant : arm64-v8a (release)
Build type : OFFICIAL
SDK Version : 33
Supported ABIs : [arm64-v8a, armeabi-v7a, armeabi]
Manufacturer : motorola
Device : motog13
Stacktrace:
java.lang.RuntimeException: Can't create handler inside thread Thread[DefaultDispatcher-worker-1,5,main] that has not called Looper.prepare()
at android.os.Handler.<init>(Handler.java:227)
at android.os.Handler.<init>(Handler.java:129)
at android.app.Dialog.<init>(Dialog.java:138)
at android.app.Dialog.<init>(Dialog.java:190)
at androidx.activity.ComponentDialog.<init>(Unknown Source:5)
at androidx.appcompat.app.AppCompatDialog.<init>(Unknown Source:22)
at androidx.appcompat.app.AlertDialog.<init>(Unknown Source:4)
at org.commonmark.internal.BlockContent.create(Unknown Source:10)
at com.google.android.material.dialog.MaterialAlertDialogBuilder.create(Unknown Source:0)
at org.commonmark.internal.BlockContent.show(Unknown Source:0)
at androidx.room.SharedSQLiteStatement$stmt$2.invoke(SourceFile:69)
at com.itsaky.androidide.fragments.MainFragment$doClone$cloneJob$1.invokeSuspend(Unknown Source:135)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:8)
at kotlinx.coroutines.DispatchedTask.run(Unknown Source:120)
at org.greenrobot.eventbus.AsyncPoster.run(Unknown Source:12)
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
I tried to clone a repository and it crashed
Expected behavior
Supposed to not crash
Version name
2.7.0
Download source
GitHub
Relevant log output