Addo Well-Known Member Licensed User Longtime User Jun 5, 2022 #1 i am trying to wrap a library with that import of import androidx.core.content.ContextCompat; Slc raise this error error: package androidx.core.content does not exist import androidx.core.content.ContextCompat; ^ 1 error Click to expand...
i am trying to wrap a library with that import of import androidx.core.content.ContextCompat; Slc raise this error error: package androidx.core.content does not exist import androidx.core.content.ContextCompat; ^ 1 error Click to expand...
Erel B4X founder Staff member Licensed User Longtime User Jun 6, 2022 #3 It has nothing to do with Java 7. You posted this question in B4J forum and the mentioned class is an Android class. Are you creating a B4A library? Upvote 0
It has nothing to do with Java 7. You posted this question in B4J forum and the mentioned class is an Android class. Are you creating a B4A library?
Addo Well-Known Member Licensed User Longtime User Jun 6, 2022 #4 Yes my bad, i am building android library Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 6, 2022 #5 The best tip that I can give you: don't create a 100% Java library unless you must. B4X libraries are much cooler and if you need Java then it is usually simpler to use inline java or JavaObject. You need to find the dependent jars and add them to SLC. Example: C:\Android\extras\b4a_remote\androidx\core\core\1.3.2\unpacked-core-1.3.2\jars\classes.jar Upvote 0
The best tip that I can give you: don't create a 100% Java library unless you must. B4X libraries are much cooler and if you need Java then it is usually simpler to use inline java or JavaObject. You need to find the dependent jars and add them to SLC. Example: C:\Android\extras\b4a_remote\androidx\core\core\1.3.2\unpacked-core-1.3.2\jars\classes.jar