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.09k stars 250 forks source link

error when trying to clone a repository from github #1757

Closed zaterehniy closed 4 months ago

zaterehniy commented 4 months ago

Issue Checklist

Additional terms

Issue explanation

error when trying to clone the Github repository

Expected behavior

cloning a repository with source code from github

Version name

2.7.1

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 : 31
Supported ABIs : [arm64-v8a, armeabi-v7a, armeabi]
Manufacturer : samsung
Device : SM-M317F

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:173)
    at android.app.Dialog.<init>(Dialog.java:278)
    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 4 months ago

Duplicate of #1608

itsaky commented 4 months ago

Update AndroidIDE to the latest version.