Try:
Code:
#AdditionalJar: androidx.lifecycle:lifecycle-runtime
#AdditionalJar: androidx.lifecycle:lifecycle-common
Thanks, Erel. I added the suggested library but get the same error. Does it matter what how I name the library. I downloaded it from the maven repo and put it in the additional library folder, but windows doesn't allow colons (":") in its filenames. Any other ideas?
Thanks, Bernie
B4A Version: 13.40
Parsing code. (0.00s)
Java Version: 19
Building folders structure. (0.05s)
Compiling code. (0.18s)
Compiling layouts code. (0.01s)
Organizing libraries. (0.32s)
(AndroidX SDK)
Compiling resources (0.47s)
Linking resources (1.83s)
build tools: 36.0.0, android jar: android-36
Compiling debugger engine code. (3.65s)
Compiling generated Java code. Error
src\b4a\gemaahost2\com\autoservicecode.java:70: error: cannot access LifecycleOwner
public static class B4AAutoSession extends androidx.car.app.Session {
^
class file for androidx.lifecycle.LifecycleOwner not found
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 7 total; use -Xmaxerrs if you would like to see more
javac 19.0.2