Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Crash on installing apk on miui #882

Closed
2 tasks done
MohammedKHC opened this issue Mar 19, 2023 · 2 comments · Fixed by #890
Closed
2 tasks done

[Bug]: Crash on installing apk on miui #882

MohammedKHC opened this issue Mar 19, 2023 · 2 comments · Fixed by #890
Labels
bug Something isn't working cannot reproduce This author did not provide a way to reproduce this bug or this bug is not reproducible.

Comments

@MohammedKHC
Copy link
Contributor

What happened?

When the build finish the app crashed

What's the expected behavior?

Not to crash

What version of AndroidIDE you're using?

v2.4.0

Relevant log output

AndroidIDE crash report
Manufacturer: Xiaomi
Device: M2010J19SG
ABI: arm64-v8a
SDK version: 31
App version: v2.4.1-beta (241)

 Stacktrace: 
java.lang.IllegalArgumentException: Failed to find configured root that contains /data/data/com.itsaky.androidide/files/home/Create Block/app/build/outputs/apk/debug/app-debug.apk
	at androidx.core.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:175)
	at com.itsaky.androidide.utils.ApkInstaller.installApk(ApkInstaller.kt:146)
	at com.itsaky.androidide.actions.build.QuickRunAction$$ExternalSyntheticLambda0.run(R8$$SyntheticClass:77)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:211)
	at android.os.Looper.loop(Looper.java:300)
	at android.app.ActivityThread.main(ActivityThread.java:8322)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1038)

Duplicate issues

  • This issue has not been reported yet.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@MohammedKHC MohammedKHC added the bug Something isn't working label Mar 19, 2023
@itsaky
Copy link
Member

itsaky commented Mar 20, 2023

I tried running a project located in the /data/data/com.itsaky.androidide/files/home directory, but I'm unable to reproduce this issue. Could you provide instructions for the same? Or probably a sample project?

@itsaky itsaky added the cannot reproduce This author did not provide a way to reproduce this bug or this bug is not reproducible. label Mar 20, 2023
This was referenced Mar 20, 2023
@MohammedKHC
Copy link
Contributor Author

Actually i tried using the default AndroidX template and its causing crash, Anyways i made an pull request to fix the bug please review it #888

@itsaky itsaky linked a pull request Mar 21, 2023 that will close this issue
itsaky pushed a commit that referenced this issue Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cannot reproduce This author did not provide a way to reproduce this bug or this bug is not reproducible.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants