Android Question Cannot find symbol import androidx.annotation.NonNull;

bparent

Member
Licensed User
Longtime User
What resource or library or what do I need to address this error?

B4A Version: 13.30
Parsing code. (0.05s)
Java Version: 19
Building folders structure. (0.07s)
Compiling code. (0.04s)
Compiling layouts code. (0.01s)
Organizing libraries. (0.01s)
(AndroidX SDK)
Compiling resources (0.21s)
Linking resources (0.50s)
build tools: 34.0.0, android jar: android-34
Compiling generated Java code. Error
src\com\example\myb4aapp\main.java:5: error: cannot find symbol
import androidx.annotation.NonNull;
^
symbol: class NonNull
location: package androidx.annotation
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
only showing the first 1 errors, of 12 total; use -Xmaxerrs if you would like to see more

javac 19.0.2
 

jkhazraji

Active Member
Licensed User
Longtime User
What resource or library or what do I need to address this error?

B4A Version: 13.30
Parsing code. (0.05s)
Java Version: 19
Building folders structure. (0.07s)
Compiling code. (0.04s)
Compiling layouts code. (0.01s)
Organizing libraries. (0.01s)
(AndroidX SDK)
Compiling resources (0.21s)
Linking resources (0.50s)
build tools: 34.0.0, android jar: android-34
Compiling generated Java code. Error
src\com\example\myb4aapp\main.java:5: error: cannot find symbol
import androidx.annotation.NonNull;
^
symbol: class NonNull
location: package androidx.annotation
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
only showing the first 1 errors, of 12 total; use -Xmaxerrs if you would like to see more

javac 19.0.2
B4X:
'Make sure androidx.annotation:annotation is installed in SDK  manager.
#AdditionalJar: androidx.annotation:annotation
 
Upvote 0
Top