Java Question SLC and AndroidX libs

KZero

Active Member
Licensed User
Longtime User
i'm trying to wrap this library

i get error
B4X:
 error: package androidx.appcompat.widget does not exist
import androidx.appcompat.widget.AppCompatImageView;

- adding appcompat-1.1.0-sources.jar ,core-1.1.0-sources (the same jars that used in Android studio for this project) to libs folder didn't help
- extracted appcompat jar and manually put the needed file in the src, it always needs other files because there is too many dependencies so this way is not suitable
- added @DependsOn(values={"appcompat-1.1.0-sources"}) but it didn't help
 

DonManfred

Expert
Licensed User
Longtime User
You dont need any sources to compile.

Add the E:\Androidrdy2runsdk\extras\b4a_remote\androidx\appcompat\appcompat\1.1.0\unpacked-appcompat-1.1.0\jars\classes.jar to your project libs folder and reference this jar. slc does search the libs folder for any references.
 
Last edited:

KZero

Active Member
Licensed User
Longtime User
You dont need any sources to compile.

Add the E:\Androidrdy2runsdk\extras\b4a_remote\androidx\appcompat\appcompat\1.1.0\unpacked-appcompat-1.1.0\jars\classes.jar to your project libs folder and reference this jar. slc does search the libs folder for any references.
i don't have "unpacked-appcompat" folder under "SDK\extras\b4a_remote\androidx\appcompat\appcompat\1.1.0"
there is only 2 files "appcompat-1.1.0.aar" and "appcompat-1.1.0.pom"

all recommended items in B4A Sdk Manager are installed
 
Top