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

Build errors - How to compile? #67

Open
powellnorma opened this issue Mar 21, 2022 · 3 comments
Open

Build errors - How to compile? #67

powellnorma opened this issue Mar 21, 2022 · 3 comments

Comments

@powellnorma
Copy link

$ ./gradlew build
Starting a Gradle Daemon, 2 incompatible and 2 stopped Daemons could not be reused, use --status for details
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>

> Task :app:compileDebugKotlin FAILED
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
    ~/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.3.50/bf65725d4ae2cf00010d84e945fcbc201f590e11/kotlin-stdlib-jdk8-1.3.50.jar (version 1.3)
    ~/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.3.50/50ad05ea1c2595fb31b800e76db464d08d599af3/kotlin-stdlib-jdk7-1.3.50.jar (version 1.3)
    ~/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.4.10/ea29e063d2bbe695be13e9d044dcfb0c7add398e/kotlin-stdlib-1.4.10.jar (version 1.4)
    ~/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.4.10/6229be3465805c99db1142ad75e6c6ddeac0b04c/kotlin-stdlib-common-1.4.10.jar (version 1.4)
w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
e: /code/java/treble_app2/app/src/main/java/me/phh/treble/app/Hostapd.kt: (16, 22): Object is not abstract and does not implement abstract base class member public abstract fun debug(p0: NativeHandle!, p1: ArrayList<String!>!): Unit defined in android.hardware.wifi.hostapd.V1_0.IHostapd.Stub
e: /code/java/treble_app2/app/src/main/java/me/phh/treble/app/QtiAudio.kt: (15, 15): Object is not abstract and does not implement abstract base class member public abstract fun debug(p0: NativeHandle!, p1: ArrayList<String!>!): Unit defined in vendor.qti.hardware.radio.am.V1_0.IQcRilAudioCallback.Stub
e: /code/java/treble_app2/app/src/main/java/me/phh/treble/app/QtiAudio.kt: (24, 15): Object is not abstract and does not implement abstract base class member public abstract fun debug(p0: NativeHandle!, p1: ArrayList<String!>!): Unit defined in vendor.qti.qcril.am.V1_0.IQcRilAudioCallback.Stub

Tried it with Java Version 8 and 11.

Alternatively: Are there prebuilds available somewhere?

@phhusson
Copy link
Owner

phhusson commented Mar 21, 2022 via email

@StupidRepo
Copy link

StupidRepo commented Sep 2, 2023

Prebuilt at https://github.com/phhusson/vendor_hardware_overlay/blob/pie/TrebleApp/app.apk

Hiya. I too am having build issues/errors. They're the same ones. How do I fix it so I can add my own customisation options to TrebleApp?

@StupidRepo
Copy link

Turns out I can just comment out all the code in the classes that are erroring, and that'll fix it :)

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

3 participants