chenxiaolong / BCR

A Basic Call Recorder for rooted Android devices
GNU General Public License v3.0
1.5k stars 98 forks source link

Not able to build magisk zip #495

Closed pakhranijatin97 closed 4 months ago

pakhranijatin97 commented 4 months ago
chenxiaolong commented 4 months ago

Which version of Java are you building with? BCR requires version 17, but it seems like you might be using version 8.

https://github.com/chenxiaolong/BCR/blob/e77000383c5b610464568feea8203aac96fa5139/app/build.gradle.kts#L189-L195

pakhranijatin97 commented 4 months ago
Screenshot 2024-02-09 at 10 16 19 AM

Using version 17 of Java to build but it still fails.

chenxiaolong commented 4 months ago

Can you post the new error message you get? If it's correctly picking up that setting, it should no longer say:

The consumer was configured to find a library for use during runtime, compatible with Java 8
pakhranijatin97 commented 4 months ago

Still getting the same issue while building magisk zip. Other than that project is working fine. Anything else I can try?

chenxiaolong commented 4 months ago

Are you building the magisk zip on the command line (vs. Android Studio)? Maybe the Java version used on the command line is different. You can check with java -version.

pakhranijatin97 commented 4 months ago

When I checked java -version from command line it was using Java 1.8 updated it to Java 17 and was able to build the zip. Thanks for the support.