AndroidIDE icon indicating copy to clipboard operation
AndroidIDE copied to clipboard

Sometimes unable to build the project until you kill the IDE process

Open RusJJ opened this issue 1 year ago • 3 comments

Issue Checklist

  • [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

Im using NDK. Sometimes IDE just stops building the project. You can try to switch to the another file and it may start building it. If it's not, you might think you can restart IDE! If you close it like a regular app by "swiping" it away in "Recent apps" menu, this will break IDE completely. It will start start showing you something about "Gradle Tools not started" if I'm not wrong.

To fix this, you just need to kill the process from the settings. It was happening on all latest versions that i got (Actions/Workflow or some latest releases, doesn't matter which one).

As a bonus: IDE doesn't save opened files... And it hurts.

Expected behavior

It should be able to build it. This is not a rare glitch at all.

Version name

Version : v2.7.1-beta (27102) CI Build : true Branch : dev Commit : 8c48a0aa3 Variant : arm64-v8a (release) Build type : OFFICIAL F-Droid Build : false F-Droid Version : null F-Droid Version code : -1 SDK Version : 34 Supported ABIs : [arm64-v8a] Manufacturer : OnePlus Device : CPH2581

Download source

GitHub

Relevant log output

No response

RusJJ avatar Sep 22 '24 06:09 RusJJ

If i can grab the log somehow related to this, please tell me

RusJJ avatar Sep 22 '24 06:09 RusJJ

Not sure if it's NDK's problem but rarely it's also getting stuck on "Task :app:configureCMakeDebug[arm64-v8a]" or "Task :app:configureCMakeDebug[armeabi-v7a]"

UPD:

INFO [DefaultDispatcher-worker-7] ToolingServerRunner: Tooling API process exited with code : 137

22-09 15:08:22.771 INFO [DefaultDispatcher-worker-7] ToolingServerRunner: Destroying Tooling API process...

RusJJ avatar Sep 22 '24 06:09 RusJJ

Restarted the phone and now it shows me this nonsense:

23-09 11:47:31.213  INFO [main] GradleBuildService:  Showing notification to user...
23-09 11:47:31.230  INFO [main] BaseEditorActivity:  Connected to Gradle build service
23-09 11:47:31.230  INFO [DefaultDispatcher-worker-7] ToolingServerRunner:  Starting tooling API server...
23-09 11:47:31.234 DEBUG [DefaultDispatcher-worker-7] BaseEditorActivity:  No variant selection information available. Default build variants will be selected.
23-09 11:47:31.234 DEBUG [DefaultDispatcher-worker-7] BaseEditorActivity:  Is project initialized: false
23-09 11:47:31.234 DEBUG [DefaultDispatcher-worker-7] BaseEditorActivity:  Sending init request to tooling server..
23-09 11:47:31.237 ERROR [DefaultDispatcher-worker-6] ToolingApiErrorStream:  Error: Invalid or corrupt jarfile /data/user/0/com.itsaky.androidide/files/home/.androidide/tooling-api/tooling-api-all.jar
23-09 11:47:31.238  INFO [DefaultDispatcher-worker-3] ToolingServerRunner:  Tooling API process exited with code : 1
23-09 11:47:31.238  INFO [DefaultDispatcher-worker-3] ToolingServerRunner:  Destroying Tooling API process...

RusJJ avatar Sep 23 '24 08:09 RusJJ