AndroidIDEOfficial / AndroidIDE

AndroidIDE is an IDE for Android to develop full featured Android apps.
https://m.androidide.com
GNU General Public License v3.0
2.08k stars 245 forks source link

An error #1818

Closed neo-nope closed 3 weeks ago

neo-nope commented 1 month ago

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

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)
itsaky commented 3 weeks ago

Upgrade to the latest version of AndroidIDE.