Android Question android.support.v7.app does not exist

AHilton

Active Member
Licensed User
Longtime User
And, yes, I did see this thread: https://www.b4x.com/android/forum/t...lass-android-support-v7-app-not-exist.114192/

I re-downloaded appcompat 4.0 and placed it in my additional libraries folder, refreshed and cleaned the project. Also, made sure that there wasn't the appcompat files in the internal libraries folder. Still same error when compiling. Any other ideas?


B4X:
B4A Version: 10.2
Java Version: 8
Parsing code.    (0.59s)
Building folders structure.    (0.04s)
Compiling code.    (2.35s)
Compiling layouts code.    (0.06s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Generating R file.    (2.46s)
Compiling debugger engine code.    (4.46s)
Compiling generated Java code.    Error
javac 1.8.0_221
src\software\xyz\xxyyzz\main.java:17: error: package android.support.v7.app does not exist
public class main extends android.support.v7.app.ActionBarActivity implements B4AActivity{
                                                ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
 

AHilton

Active Member
Licensed User
Longtime User
Yes, it does. I should have mentioned that the project that threw me the error is a well-established one that hasn't had any changes (I don't think) in several months and has been running well for a few years now. I just upgraded to B4A 10.2 and that error came up. Obviously, something has gotten screwed-up somewhere.
 
Upvote 0

AHilton

Active Member
Licensed User
Longtime User
I've taken out the "android.support.v7.app.ActionBarActivity" line from each of the Activities in that project but, yet, leaving the android.support.v7.app.AppCompatActivity" line above each of those in there and the app compiles and loads now. And, it doesn't seem to be any worse for it, either. I don't remember exactly why it was in there in the first place. I'll do some more testing of the app to see what's going to break.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…