Android Question AddtionalRes / AdditionalJar B4a 6

MarcoRome

Expert
Licensed User
Longtime User
Hi Erel.
if i understand before we insert the following line:

B4X:
#AdditionalRes: F:\Android\extras\google\google_play_services\libproject\google-play-services_lib\res, com.google.android.gms

now is sufficient write this:

B4X:
#AdditionalJar: com.google.android.gms:play-services-location


I have a few questions:

1. This
play-services-location
he will seek the right path ?
Example my "old" code is
B4X:
#AdditionalRes: F:\Android\extras\google\google_play_services\libproject\google-play-services_lib\res, com.google.android.gms
Now if i write:
B4X:
#AdditionalJar: com.google.android.gms:play-services-location
is it sufficient ?

2. I noticed that by installing the Google Play Services version 30 is deleted libproject folder.
..\extras\google\google_play_services\ libproject
and actually deleted the file "google-play-services.jar".
Declaring in this way we solve the problem ??

3. If YES for question 2. The file "google-play-services.jar" that we have in additional libraries folder should be deleted ?

4. For Appcompat now we write:

B4X:
#AdditionalRes: F:\Android\extras\android\support\v7\appcompat\res, android.support.v7.appcompat

will be sufficient write this:
B4X:
#AdditionalJar: android.support.v7.appcompat:???

Thank you for your time
Marco
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
1. Yes.
2. Yes.
3. It doesn't matter.
4. For AppCompat it should be:
B4X:
#AdditionalJar: com.android.support:appcompat-v7
However in Beta #1 you will also need to remove the reference to android.support.v7.appcompat.jar from the xml file of the library (at the end of the xml file). This step will not be required in the next update.

Also note that once the libraries are updated then the #AdditionalJar will not be required at all, though it will not do any harm.
 
Upvote 0
Top