Re: advice on android-framework-23
- To: Emmanuel Bourg <ebourg@apache.org>, Thorsten Glaser <t.glaser@tarent.de>
- Cc: "debian-java@lists.debian.org" <debian-java@lists.debian.org>, Chirayu Desai <chirayudesai1@gmail.com>, ๆฎทๅ่ฐ <seamlikok@gmail.com>, Android tools Maintainer <android-tools-devel@lists.alioth.debian.org>
- Subject: Re: advice on android-framework-23
- From: Hans-Christoph Steiner <hans@eds.org>
- Date: Sun, 27 Jan 2019 22:28:44 +0100
- Message-id: <[๐] f30a66ba-accb-0026-2886-0f4d161f73c4@eds.org>
- In-reply-to: <[๐] 41eafe86-4394-e41a-84fc-5dac30524d4f@apache.org>
- References: <[๐] 6e04778f-18fa-fdfe-2707-9f726bece7cb@eds.org> <[๐] alpine.DEB.2.21.1901271459330.18204@tglase-nb.lan.tarent.de> <[๐] f6eb35f7-0af6-e2e4-8766-f88ffa2146b2@eds.org> <[๐] 41eafe86-4394-e41a-84fc-5dac30524d4f@apache.org>
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
Attachment:
signature.asc
Description: OpenPGP digital signature
Reply to:
- Follow-Ups:
- Re: advice on android-framework-23
- From: Hans-Christoph Steiner <hans@eds.org>
- Re: advice on android-framework-23
- References:
- advice on android-framework-23
- From: Hans-Christoph Steiner <hans@eds.org>
- Re: advice on android-framework-23
- From: Thorsten Glaser <t.glaser@tarent.de>
- Re: advice on android-framework-23
- From: Hans-Christoph Steiner <hans@eds.org>
- Re: advice on android-framework-23
- From: Emmanuel Bourg <ebourg@apache.org>
- advice on android-framework-23
- Prev by Date: Re: advice on android-framework-23
- Next by Date: Re: advice on android-framework-23
- Previous by thread: Re: advice on android-framework-23
- Next by thread: Re: advice on android-framework-23
- Index(es):