Android Question main.java uses or overrides a deprecated API

wbtcpip

Member
Licensed User
Longtime User
b4a 12.80 here

i update android sdk from 33 to 34 and java from 14.0.1 to 19.0.2 and now my application wont compile anymore

could you please help me to find the problem?

B4X:
B4A Versione: 12.80
Analisi del Codice.    (0.05s)
    Java Versione: 19
Building folders structure.    (0.01s)
Compilazione del codice.    (0.07s)
Compilazione del codice di layouts    (0.01s)
Organizzazione Librerie.    (0.04s)
    (AndroidX SDK)
Compilazione risorse    (1.58s)
Collegamento risorse    (0.36s)
Compilazione del codice debugger.    (1.61s)
Compilazione del codice Java prodotto.    Error
Note: src\mbsoft\mblive\main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
An annotation processor threw an uncaught exception.
Consult the following stack trace for details.
java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
    at androidx.lifecycle.LifecycleProcessor.getSupportedSourceVersion(LifecycleProcessor.kt:37)
    at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$ProcessorState.checkSourceVersionCompatibility(JavacProcessingEnvironment.java:758)
    at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$ProcessorState.<init>(JavacProcessingEnvironment.java:698)
    at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors$ProcessorStateIterator.next(JavacProcessingEnvironment.java:823)
    at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:919)
    at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1262)
    at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1377)
    at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1234)
    at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:916)
    at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:317)
    at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:176)
    at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:64)
    at jdk.compiler/com.sun.tools.javac.Main.main(Main.java:50)
Caused by: java.lang.ClassNotFoundException: kotlin.jvm.internal.Intrinsics
    at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ... 13 more

javac 19.0.2
 

agraham

Expert
Licensed User
Longtime User
Start again. Install, OpenJDK 19, B4A 13.00 and the matching SDK from the B4A product page and try compiling again.
 
Upvote 0
Top