bhook icon indicating copy to clipboard operation
bhook copied to clipboard

Cannot build for x86_64 after updating to 1.1.0

Open artdeell opened this issue 1 year ago • 1 comments

bytehook Version

1.1.0

Android OS Version

any

Android ABIs

x86_64

Device Manufacturers and Models

any

Describe the Bug

After upgrading to 1.1.0 and trying to build, this happens on x86_64 specifically:

C/C++: /<project path hidden>/src/main/jni/Android.mk proguard|x86_64 : com.google.prefab.api.NoMatchingLibraryException: No compatible library found for //shadowhook/shadowhook. Rejected the following libraries:

artdeell avatar Jan 15 '25 13:01 artdeell

Since v1.1.0, Bytehook made an incompatible change. Check it out at https://github.com/bytedance/bhook/releases/tag/v1.1.0. v1.1.1 fixed the compilation problem, view here: https://github.com/bytedance/bhook/releases/tag/v1.1.1.

1. Newly dependent on shadowhook library in arm and arm64 architectures.
If you use prefab to depend on bytehook in x86 and x86_64 architectures, you need to add gradle/prefab_bypass.gradle in the module's build.gradle.

Colibrow avatar Jan 16 '25 03:01 Colibrow