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

Build variant showing no data and not able to use quick run #1830

Open CyberXCoder-6649 opened 3 weeks ago

CyberXCoder-6649 commented 3 weeks ago

Issue Checklist

Additional terms

Issue explanation

https://github.com/AndroidIDEOfficial/AndroidIDE/assets/86068846/731b69a5-0ebc-48b5-861d-58433d5167ee

So as you can see it shows no data in Build Variant page and quick run not working but project compiles well with run task menu tried restarting ide and settings.gradle is correct but still not showing variants or running. I am trying to run Termux in AndroidIDE

Expected behavior

Should show variants and quick run should work as expected

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

Download source

GitHub

Relevant log output

None
itsaky commented 3 weeks ago

@CyberXCoder-6649 Can you share the IDE logs?

CyberXCoder-6649 commented 3 weeks ago

@CyberXCoder-6649 Can you share the IDE logs?

@itsaky There are no IDE logs but let me check once again

CyberXCoder-6649 commented 3 weeks ago

@CyberXCoder-6649 Can you share the IDE logs?

This is after initialization:

ide_logs.txt

And this is while quick run clicked: ide_logs (1).txt

Nothing is there in logs

CyberXCoder-6649 commented 3 weeks ago

@itsaky when will this issue get fixed

CyberXCoder-6649 commented 3 weeks ago

@itsaky when will this issue get fixed and what about it shows lot of errors? Even theres are zero error in compilation maybe due to application module not found? or something else? does ide support suggestions and resolutions of classes through different module? if yes then this might be the problem of "No application module found error" else please add this feature too to support suggestions through different modules and resolution of classes through different modules

itsaky commented 3 weeks ago

when will this issue get fixed

No ETA. I'll work on it when I'm free.

what about it shows lot of errors? Even theres are zero error in compilation maybe due to application module not found? or something else?

Provide a detailed bug report in a new issue.

does ide support suggestions and resolutions of classes through different module? if yes then this might be the problem of "No application module found error" else please add this feature too to support suggestions through different modules and resolution of classes through different modules

Yes, the IDE can handle symbol resolution in a multi module project. The "No application module found" error is usually misleading and mostly occurs because the IDE fails to build project models in the Android Runtime. The cause for this is usually shown in the IDE logs.

CyberXCoder-6649 commented 3 weeks ago

Ok bro i am waiting for next update regarding this issue and i will create new issue on:

what about it shows lot of errors? Even theres are zero error in compilation maybe due to application module not found? or something else?

ByteSculptor07 commented 1 week ago

I have the same issue, first this: Screenshot_AndroidIDE_1 Then I closed the project and opened it again, now this: Screenshot_AndroidIDE_2 I can't even run tasks because it isn't initialized.

CyberXCoder-6649 commented 1 week ago

I have the same issue, first this: Screenshot_AndroidIDE_1 Then I closed the project and opened it again, now this: Screenshot_AndroidIDE_2 I can't even run tasks because it isn't initialized.

But that don't work in my case

CyberXCoder-6649 commented 1 week ago

@itsaky i think the issue is with old gradle so maybe some kind of parsing issue and also one thing more i tried to run termux in first video and now when i try to run this small old project same issue: https://github.com/jusss/BluetoothKeyboard.git So maybe old gradle configuration or maybe with gradle groovy it's not a big project so you can test this above github project in android ide by cloning same issue like termux CONFIGURE SUCCESSFUL and also BUILD SUCCESSFUL by run task but quick run fails and no data is shown in Variant Menu i will do some more experiments on this issue try to figure out exact issue i will update you soon if i got any other hints

CyberXCoder-6649 commented 1 week ago

BTW which file do AndroidIDE parse for Build Variant i will try updating those file and test it if i am able to see quick run, and Variants