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

BrutException compile failure #29

Open
Airblox opened this issue May 8, 2024 · 2 comments
Open

BrutException compile failure #29

Airblox opened this issue May 8, 2024 · 2 comments

Comments

@Airblox
Copy link

Airblox commented May 8, 2024

I used the Notally app .apk file and followed the instructions. After changing the discord webhooks, it compiled successfully. I put the .apk file in the inject/APK folder, ran python -m inject, and it finished. However when I drag the folders from inject/Output to the APKTool and compile it, it gives this error:

[11:03:37] Building resources...
[11:03:57] ...\inject\Output\Notally\res\values\layouts.xml:3: error: invalid value for type 'layout'. Expected a reference.
[11:03:57] ...\inject\Output\Notally\res\values\layouts.xml:4: error: invalid value for type 'layout'. Expected a reference.
[11:03:57] ...\inject\Output\Notally\res\values\layouts.xml:5: error: invalid value for type 'layout'. Expected a reference.
[11:03:57] ...\inject\Output\Notally\res\values\layouts.xml:6: error: invalid value for type 'layout'. Expected a reference.
[11:03:57] ...\inject\Output\Notally\res\values\layouts.xml:7: error: invalid value for type 'layout'. Expected a reference.
[11:03:57] ...\inject\Output\Notally\res\values\layouts.xml:8: error: invalid value for type 'layout'. Expected a reference.
[11:03:57] ...\inject\Output\Notally\res\values\layouts.xml:9: error: invalid value for type 'layout'. Expected a reference.
[11:03:57] ...\inject\Output\Notally\res\values\layouts.xml:10: error: invalid value for type 'layout'. Expected a reference.
[11:03:57] ...\inject\Output\Notally\res\values\layouts.xml:11: error: invalid value for type 'layout'. Expected a reference.
[11:03:57] ...\inject\Output\Notally\res\values\layouts.xml:12: error: invalid value for type 'layout'. Expected a reference.
[11:03:57] ...\inject\Output\Notally\res\values\layouts.xml:13: error: invalid value for type 'layout'. Expected a reference.
[11:03:57] ...\inject\Output\Notally\res\values\layouts.xml:14: error: invalid value for type 'layout'. Expected a reference.
[11:03:57] ...\inject\Output\Notally\res\values\layouts.xml:15: error: invalid value for type 'layout'. Expected a reference.
[11:03:57] ...\inject\Output\Notally\res\values\layouts.xml:16: error: invalid value for type 'layout'. Expected a reference.
[11:03:57] ...\inject\Output\Notally\res\values\layouts.xml:17: error: invalid value for type 'layout'. Expected a reference.
[11:03:57] ...\inject\Output\Notally\res\values\layouts.xml:18: error: invalid value for type 'layout'. Expected a reference.
[11:03:57] ...\inject\Output\Notally\res\values\layouts.xml:19: error: invalid value for type 'layout'. Expected a reference.
[11:03:57] ...\inject\Output\Notally\res\values\layouts.xml:20: error: invalid value for type 'layout'. Expected a reference.
[11:03:57] ...\inject\Output\Notally\res\values\layouts.xml:21: error: invalid value for type 'layout'. Expected a reference.
[11:03:57] ...\inject\Output\Notally\res\values\layouts.xml:22: error: invalid value for type 'layout'. Expected a reference.
[11:03:57] brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [...\brut_util_Jar_4856795076241234279845401281250622954.tmp, compile, --dir, ...\inject\Output\Notally\res, --legacy, -o, ...\inject\Output\Notally\build\resources.zip]
[11:03:57] =====[ Error ]=====
[11:03:57] Compiling failed
[11:03:57] Time started: 11:01:27
[11:03:57] Time elapsed: 02:30

If I try to drag the .apk from inject/APK after pressing inject, it compiles without problems, but when I put it in a virtual device using Android Studio, the app stops immediately after opening.

Is there a fix, or what is the mistake I made?

@NullPounce
Copy link
Owner

the injection can be hit or miss, I've thought of using kotlin for possible better merging, think it should work well on say Fdroid apps, works on spotify, it at leasts puts everything where it needs to go, you can try to open up any mentioned files with errors from logs in vs code or anything that could identify the section with the issue.

@Airblox
Copy link
Author

Airblox commented Jun 1, 2024

Alright, I tried the method showcased in the README, but it said the app wasn't installed:

image

I also tried typing to see if it gives anything, but it also does nothing:

image

This is done on Android Studio's AVD, a Resizable (Experimental) API VanillaIceCream. Is the tutorial outdated, or is the device not supported?

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