All Questions
20
questions
0
votes
0
answers
120
views
Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'kaptGenerateStubsDebugKotlin' (17)
I have tried all of the listed solutions I can find on the Internet and am stumped.
I'm updating to Java 17 from 1.8, and I am getting the error:
Inconsistent JVM-target compatibility detected for ...
0
votes
0
answers
168
views
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.bouncycastle.jce.provider.BouncyCastleProvider"
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.bouncycastle.jce.provider.BouncyCastleProvider" on path: DexPathList[***]at dalvik.system.BaseDexClassLoader.findClass(...
-1
votes
1
answer
119
views
Java 17 on older Android devices
We upgraded gradle in AS to 8.4.
Now AS insists we have to build with Java 17.
Will the apps still work on older devices that don't support Java 17 - as long as we don't use any new features above ...
0
votes
0
answers
752
views
Fatal error has been detected by the Java Runtime Environment: EXCEPTION_ACCESS_VIOLATION
I'm currently building an android app and I got this error when building it.
Recently, I've shrink my windows partition to add storage to another ubuntu partition and this error came up...
I've tried ...
0
votes
0
answers
50
views
Could not find error_prone_annotations-2.11.0.jar
I am working on KMM (Kotlin Multiplatform for Mobile) and while upgrading android and common dependencies (kotlin: 1.9.20, Gradle Plugin: 8.1.0), I have encountered a weird issue.
Task failed with an ...
0
votes
0
answers
311
views
when upgrading to gradle 8.2 got this error Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
I recently upgraded my android studio to 2023.1.1 hedgehog as a part of project requirement I upgraded gradle version to 8.1 and AGP to 8.1.1 with jdk 17.0.10 and following are the version I have ...
2
votes
1
answer
2k
views
hedgehog android studio project structure , no java sdk
I have a project in android studio, updated to "Android Studio Hedgehog" version, but inside idea file->project structure-> project : there is no option to change jdk version, and i am ...
1
vote
0
answers
132
views
SHA-256 digest error for org/bouncycastle/asn1/ASN1Sequence$1.class
I'm using lib:
'com.madgag.spongycastle:core:1.58.0.0'
My App java version is 17
i got this error:
How can i fix this ?
0
votes
0
answers
515
views
After changing the patrykandpatrick/vico library version to 1.13.0 the application compiling FAILED
For my application I am using a chart library patrykandpatrick/vico.
Version 1.12.0 works great. But when I upgrade the version to 1.13.0, an error occurs during compilation:
> Task :app:...
0
votes
0
answers
30
views
Android gradle bundleRelease cmd getting failed on mac
I am using AGP version 8.1 & Microsoft open JDK version 17.0.9
gradle.wrapper.properties as below
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services....
1
vote
0
answers
168
views
Switching to Java 17 breaks Gradle testDebug task
We have an Android project with various Gradle subprojects. For years we've been using the task testDebug to run all the tests in all subprojects.
However, since we recently switched to Java 17, we ...
1
vote
1
answer
539
views
cannot access Record in Android Studio
I am getting error: cannot access Record
class file for java.lang.Record not found
I have configured JDK 17 and able to use other JDK 17 features like enhanced switch, triple quotes ("""...
0
votes
0
answers
1k
views
Android studio build error: InaccessibleObjectException: Unable to make field private transient
Facing this issue in the latest Android Studio (Android Studio Flamingo) with Java 17.
Getting the below error after some files adding/modifying code in files(XML or .KT) when I try to create the ...
1
vote
0
answers
493
views
How can I get an older version of openjdk-17 from apt on termux?
I have been trying to use advanced package tool to install openjdk-17 on an android device using termux. However, this always results in the package manager installing an "internal" version ...
7
votes
1
answer
5k
views
R8 Compatibility With Sealed Class In Android Studio Flamingo
When I want to release my app get this error: com.android.tools.r8.internal.jb: Sealed classes are not supported as program classes when generating class files
Android Studio: Flamingo 2022.2.1 (also ...