Android Question missing android.support.v7.app.AppCompatActivity

jmorales

Member
Licensed User
Longtime User
Hi !
I'm trying to use AppCompat library, but I can't find the missing android.support.v7.app.AppCompatActivity.jar file to add it to mi b4a library (because it's not there and I think it should be there).
I use b4a 6.5 (I just updated)
My Android SDK is update

I don't now if I have to generate it.

Any idea?
 

Attachments

  • sdk1.PNG
    sdk1.PNG
    36.6 KB · Views: 644
  • sdk2.PNG
    sdk2.PNG
    57 KB · Views: 707
  • sdk3.PNG
    sdk3.PNG
    86.2 KB · Views: 634
  • sdk4.PNG
    sdk4.PNG
    92 KB · Views: 583
  • sdk5.PNG
    sdk5.PNG
    66 KB · Views: 598
  • libraries.PNG
    libraries.PNG
    179.1 KB · Views: 597

corwin42

Expert
Licensed User
Longtime User
There is no and there never was a android.support.v7.app.AppCompatActivity.jar. You don't need it.

Your setup looks ok from the screenshots.

You should not add additional libraries to the B4A installation folder. Use the additional libraries folder for this (Tools->Configure Paths).

What error do you get?
 
Upvote 0

jmorales

Member
Licensed User
Longtime User
thanks, I start to see my problem, I confused some things.
I read in some commentaries, about this path: sdk\extras\android\support\v7\appcompat\res and also about android-support-v4, and android.support.v7.app.AppCompatActivity, and I very sure that I read something about android-support-v7, and I made a mess.

I assumed :

android.support.v7.app.AppCompatActivity = android-support-v7

How I have android-support-v4 in my b4a Libraries (which is another mess, I know :( ) I imagined I need to have android-support-v7 in it.

And I still looking for the path sdk\extras\android\support\v7\appcompat\res or similar

and about my error, I will comment it in another thread because is not related

thank you.
 
Upvote 0

corwin42

Expert
Licensed User
Longtime User
My suggestion:

First clean up your installation:
- Deinstall B4A.
- Remove all libraries which may be left in <Program Files>\Anywhere Software\Basic4Android\Libraries
- reinstall B4A
- Setup a Folder for your additional libraries and configure it in Tools->Configure Paths.
- Put all additional libraries only in this folder.

If you don't do this I guess you will sooner or later run into troubles.

For the AppCompat and Support library stuff. Don't care about them anymore. Install the Android Support Repository and Google Repository with SDK Manager. Don't add any libraries like android-support-v4.jar etc to your libraries folders.

If you have an (example) project which still references AppCompat resources with #AdditionalRes: .....\appcompat\.... remove such lines. They are not needed anymore.
If a project complains about missing android-support-v4.jar you should add the following line to your project:
B4X:
#AdditionalJar: com.android.support:support-v4
This should fix it.
 
Upvote 0
Top