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

Execution failed for task ':compileDebugJavaWithJavac'. #426

Open
rgeorge04 opened this issue May 10, 2021 · 12 comments
Open

Execution failed for task ':compileDebugJavaWithJavac'. #426

rgeorge04 opened this issue May 10, 2021 · 12 comments

Comments

@rgeorge04
Copy link

rgeorge04 commented May 10, 2021

Wanted to build the new version again but came across this error:
image

what happened?

@th3an7
Copy link
Collaborator

th3an7 commented May 10, 2021

I've fixed that on my fork in these 2 commits:
th3an7@9e71fdd#diff-48d6cd1c79a5aec1b5eec271c81e8cb5a2e62be26545eed15d20a5d0ffaa1a3a
th3an7@90987da#diff-48d6cd1c79a5aec1b5eec271c81e8cb5a2e62be26545eed15d20a5d0ffaa1a3a

If you just want to use the module without building yourself, you can use automatically built debug builds HERE (click artifacts at the top... probably have to uninstall your version first - it's not signed)

Or if you want to build it yourself without setting up gradle/Android Studio on your PC, you can use GitHub actions (with those fixes applied ofc)
https://github.com/th3an7/YouTubeBackgroundPlayback/blob/master/.github/workflows/android.yml
This will run everytime you commit something and upload artifact (just like it does on my fork)

@th3an7 th3an7 closed this as completed in 62b8c89 May 10, 2021
@th3an7 th3an7 reopened this May 10, 2021
@th3an7
Copy link
Collaborator

th3an7 commented May 10, 2021

I've added those 2 commits here - pull changes and try to build it again - if it works, then it's fixed and this issue can be closed

If not - then we're gonna worry 🤞

Didn't know GitHub closes issues automatically now...

@rgeorge04
Copy link
Author

BUILD SUCCESSFUL
now let me see if it works in practice

@th3an7
Copy link
Collaborator

th3an7 commented May 10, 2021 via email

@rgeorge04
Copy link
Author

Btw: you don't have to build new .apk everytime hooks get updated - they are automatically pulled from GitHub repo (from those links inside) - only those .json files need to be changed for each new YT version

On Mon, May 10, 2021, 20:10 George @.***> wrote: BUILD SUCCESSFUL now let me see if it works in practice — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <#426 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADGHC3CRL6V3NCRKBGX7GHDTNAOQLANCNFSM44RZNT3A .

yeah the build was successful and installation was successful but the app itself isnt working as intended :(

@th3an7
Copy link
Collaborator

th3an7 commented May 10, 2021

What's wrong? Does background not work? Check xposed/edxposed/logcat logs.
Also check if you've enabled module and you force closed YT app/rebooted device first

@rgeorge04
Copy link
Author

What's wrong? Does background not work? Check xposed/edxposed/logcat logs.
Also check if you've enabled module and you force closed YT app/rebooted device first

where are do i find those logcat logs? i serached and didnt find anywhere

@th3an7
Copy link
Collaborator

th3an7 commented May 10, 2021 via email

@rgeorge04
Copy link
Author

For logcat you need to use adb (on PC) or terminal emulator (on phone)

I think it's adb logcat command - it will start showing you whole log in
real time - you can log everything to file with adb logcat > somefile.txt

Start logging and then open YT app so it will save those actions, read why
it doesn't work and maybe then we'll find solution

On Mon, May 10, 2021, 20:50 George @.***> wrote:

What's wrong? Does background not work? Check xposed/edxposed/logcat logs.
Also check if you've enabled module and you force closed YT app/rebooted
device first

where are do i find those logcat logs? i serached and didnt find anywhere


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#426 (comment),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADGHC3AEX6MKJSUXI3JXKE3TNATHFANCNFSM44RZNT3A
.

checked logcat but didnt find anything related to the YouTubeBackgroundPlayback

https://drive.google.com/file/d/145mLa5sY6teUJNn45rcs8tN1HDG9ydEJ/view?usp=drivesdk

@th3an7
Copy link
Collaborator

th3an7 commented May 10, 2021

I have no idea then... If there is nothing more in Xposed/EdXposed logs, I guess I can't help you sadly :(

@rgeorge04
Copy link
Author

I have no idea then... If there is nothing more in Xposed/EdXposed logs, I guess I can't help you sadly :(

sorry i know this might seem off-topic, but when i try to compile the program again it says device offline, i tried it on other phones and there was no problem, but mine is offline. Cant seem to see the cause.

image

i revoked usb debugging and conected again, at first it works with adb devices it shows the device, but after i try to build on MY phone it says its offline, then i check adb devices again and it shows that the device is offline (what?). Then i try again and the list is empty. I updated the drivers but it says the best drivers are already installed. What is happening? is this related to root/edxposed?

@th3an7
Copy link
Collaborator

th3an7 commented May 11, 2021

Try to install it separately (not right after building with gradle) - try either copying built .apk to your phone memory and installing it there or by using adb install <yourbuild.apk>

Also try restarting adb servier with adb kill-server and adb start-server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants