Android Question Howto get resources

fishwolf

Well-Known Member
Licensed User
Longtime User
I have move the b4a into a new pc.
in my projects i had a resources link to
B4X:
#AdditionalRes: C:\Users\MY\AppData\Local\Android\android-sdk\extras\android\google\google_play_services\libproject\google-play-services_lib\res, com.google.android.gms

i have set the Google Play Services download from Sdk manager, but the "
"libproject" and "res" folder are not present

Suggest?
 
Last edited:

fishwolf

Well-Known Member
Licensed User
Longtime User
why is it so slow?
Why don't found aapt? aapt is on C:\Android\build-tools\24.0.0 and not under "tools"

B4X:
B4A version: 6.00
Parsing code.  (0.00s)
Compiling code.  (0.12s)
Compiling layouts code.  (0.02s)
Organizing libraries.  (5.32s)
Generating R file.  (0.47s)
Compiling debugger engine code.  (1.48s)
Compiling generated Java code.  (2.92s)
Convert byte code - optimized dex.  (21.53s)
   Optimized dexer failed. Switching to Standard dexer.
Packaging files.  Error

AAPT path: C:\Android\tools\..\build-tools\24.0.0\aapt.exe
Exit code:-1073741819
 
Upvote 0

fishwolf

Well-Known Member
Licensed User
Longtime User
You don't need to use #AdditionalRes if you are using B4A v6.
if i remove i have this erorr
B4X:
AndroidManifest.xml:29: error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').

in manifest i have:
B4X:
AddApplicationText(
   <meta-data android:name="com.google.android.gms.version"
    android:value="@integer/google_play_services_version"/>
   <activity android:name="com.google.android.gms.ads.AdActivity"
    android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
)

if i haven't the folder cannot follow this tutorial

https://www.b4x.com/android/forum/threads/google-play-services-installation-tips.45843/#content

and cannot copy:

- Copy google-play-services.jar from <android sdk>\extras\google\google_play_services\libproject\google-play-services_lib\libs to the additional libraries folder. Make sure to repeat this step whenever you update Google Play Services.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…