phhusson / treble_app

An app which will do various stuff for Treble ROMs
68 stars 92 forks source link

Build errors - How to compile? #67

Open powellnorma opened 2 years ago

powellnorma commented 2 years ago
$ ./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 commented 2 years ago

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

21 mars 2022 17:23:28 powellnorma @.***>:

$ ./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?

— Reply to this email directly, view it on GitHub[https://github.com/phhusson/treble_app/issues/67], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAAA4OT2LHLH67ILBQO4ZO3VBCPABANCNFSM5RIG2D5A]. You are receiving this because you are subscribed to this thread. [data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAjSURBVGiB7cEBDQAAAMKg909tDwcUAAAAAAAAAAAAAADApwExOAABR9ZGcwAAAABJRU5ErkJggg==###24x24:true###][Image de pistage][https://github.com/notifications/beacon/AAAA4ORXPSTX24HGY2Q7P2TVBCPABA5CNFSM5RIG2D5KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4RQSVQFQ.gif]

StupidRepo commented 1 year ago

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 commented 1 year ago

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