Can't Repro
Status Update
Comments
lu...@google.com <lu...@google.com> #2
Thank you very much for taking the time to file this issue for Android Studio. Unfortunately, the development team can currently only process feedback in English. We apologize and realize that that makes it harder for many Android engineers to submit issues, but would you be able to translate your issue into English? Thank you!
ww...@gmail.com <ww...@gmail.com> #3
I can not build "java.lang.Character.toString( int codePoint )" (Since:Java11) by Android Studio.
int i = 0x20BB7;//surrogate pair Unicode
String str = java.lang.Character.toString( i );
is "error: incompatible types: possible lossy conversion from int to char".
But I can compile success it
by "C:\Program Files\Android\Android Studio\jre\bin\javac.exe" = Android Studio include openJDK.
int i = 0x20BB7;//surrogate pair Unicode
String str = java.lang.Character.toString( i );
is "error: incompatible types: possible lossy conversion from int to char".
But I can compile success it
by "C:\Program Files\Android\Android Studio\jre\bin\javac.exe" = Android Studio include openJDK.
ww...@gmail.com <ww...@gmail.com> #4
I setuped PROJECT\app\build.gradle
...
android {
...
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
}
...
...
android {
...
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
}
...
sg...@google.com <sg...@google.com> #5
Thank you very much for taking the time to file this issue for Android Studio. Unfortunately, the development team can currently only process feedback in English. We apologize and realize that that makes it harder for many Android engineers to submit issues, but would you be able to translate your issue into English? Thank you!
sg...@google.com <sg...@google.com> #6
Sorry about
lu...@google.com <lu...@google.com> #7
I am unable to reproduce this issue (at least with AGP 8.1-alpha07).
If you are still able to produce this issue with a recent version of AGP, please attach a project that reproduces the issue and reopen the issue.
Description
AI-213.7172.25.2113.9014738, JRE 11.0.13+0-b1751.21-8125866x64 JetBrains s.r.o., OS Windows 11(amd64) v10.0 , screens 1920.0x1080.0
AS: Dolphin | 2021.3.1
Kotlin plugin: 213-1.7.10-release-for-android-studio-AS6777.52
Android Gradle Plugin: 7.1.1
Gradle: 7.2
Gradle JDK: version 11.0.13
NDK: from local.properties: (not specified), latest from SDK: (not found)
CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
IMPORTANT: Please read
int i = 0x20BB7;//ツチヨシ Unicode
String str = java.lang.Character.toString( i );
が「エラー: 不適合な型: 精度が失われる可能性があるintからcharへの変換」となり
Java11から導入された java.lang.Character.toString( int codePoint ) が使えません。
C:\Program Files\Android\Android Studio\jre\bin
の javac コンパイルは成功します。