[Android-tools-devel] advice on android-framework-23
Hans-Christoph Steiner
hans at eds.org
Sun Jan 27 21:28:44 GMT 2019
Emmanuel Bourg:
> Le 27/01/2019 à 21:12, Hans-Christoph Steiner a écrit :
>
>> I have been building with these options in gradle:
>>
>> sourceCompatibility = 1.8
>> targetCompatibility = 1.8
>>
>> And that doesn't solve the problem of the new "patch module" stuff added
>> in Java9. That means you have to do some extra tricks to build parts of
>> Java itself. The android.jar is the SDK jar, so it includes lots of
>> java.* classes. This is the stuff that is stumping us.
>
> Setting the source/target isn't enough. You have to set the new javac
> --release flag.
I added this to debian/build.gradle:
allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
options.encoding = 'UTF-8'
options.compilerArgs.addAll(['--release', '8'])
}
}
}
And it still fails with lots and lots of errors like:
/export/share/code/android-tools-team/android-framework-23/libcore/libart/src/main/java/java/lang/AbstractStringBuilder.java:18:
error: package exists in another module: java.base
package java.lang;
^
Its this stuff:
https://openjdk.java.net/jeps/261
.hc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/android-tools-devel/attachments/20190127/be04eba7/attachment.sig>
More information about the Android-tools-devel
mailing list