Android Question \google_play_services\libproject\google-play-services_lib\res does not exist

MarcoRome

Expert
Licensed User
Longtime User
Hi all.
I bought a new PC and then installed B4A. I have the following problem. When I'm going to fill the message as indicated in Point 1:

B4A version: 5.80
Parsing code. (0.02s)
Compiling code. (0.02s)

ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. (0.00s)
Generating R file. Error
ERROR: resource directory 'f:\android\extras\google\google_play_services\libproject\google-play-services_lib\res' does not exist

but it seems everything installed correctly.

If you see in point 2 GOOGLE PLAY SERVICES is installed, but if you open path i dont found libproject

The strange thing is that in google_play_services folder does not exist libproject \ google-play-services_lib \ res

Screenshot 2016-05-21 08.50.18.png


in attachment also movie.



Any idea ? o_O
Thank you very much for any type support
Regards
Marco
 

MarcoRome

Expert
Licensed User
Longtime User
Yes. give me one hour..... and place where I can upload.
I think that this is better solution. I have solved in this way.
 
Upvote 0

susu

Well-Known Member
Licensed User
Longtime User
Well the latest SDK Android is a nightmare.

I solved in the following way

1. Unistall Google Play Services

View attachment 44260


2. Download Google Play Services 29 and unzip.


3. You have a Folder in zip file : google_play_services

4. Copy this folder in your path --> X:\xxxxxxx\extras\google

5. Now you have X:\xxxxxxx\extras\google\google_play_services

6.Close all.

7. Run B4A. If you have error "Packaging files. Error" you see this THREAD

I did all steps, even restart my PC but can't fix it. Help!!!
 
Upvote 0

udg

Expert
Licensed User
Longtime User
Hi all,
about post #11. I read ..google\google-play-services... (minus signs in g-p-s sequence) in the folder selected path, while the error box shows ..google\google_play_services.. (underscore chars in g-p-s sequence).

Just to signal the discrepancy.
 
Upvote 0

amidgeha

Active Member
Licensed User
Longtime User
Well the latest SDK Android is a nightmare.

I solved in the following way

1. Unistall Google Play Services

View attachment 44260


2. Download Google Play Services 29 and unzip.


3. You have a Folder in zip file : google_play_services

4. Copy this folder in your path --> X:\xxxxxxx\extras\google

5. Now you have X:\xxxxxxx\extras\google\google_play_services

6.Close all.

7. Run B4A. If you have error "Packaging files. Error" you see this THREAD

This works just fine, be careful that the path in the #additionalres is case sensitive or it keeps saying (res not found) at least on windows 7
 
Upvote 0

amidgeha

Active Member
Licensed User
Longtime User
Well the latest SDK Android is a nightmare.

I solved in the following way

1. Unistall Google Play Services

View attachment 44260


2. Download Google Play Services 29 and unzip.


3. You have a Folder in zip file : google_play_services

4. Copy this folder in your path --> X:\xxxxxxx\extras\google

5. Now you have X:\xxxxxxx\extras\google\google_play_services

6.Close all.

7. Run B4A. If you have error "Packaging files. Error" you see this THREAD
All is working fine but test ads are not showing
 
Upvote 0

Raywingit

Member
Licensed User
Longtime User
Meanwhile, google-play-services went to version 31.
There needs to be a better solution than perpetuating version 29.
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
Meanwhile, google-play-services went to version 31.
There needs to be a better solution than perpetuating version 29.
Then with the B4A version 6.0 there ISN'T PROBLEM. This thread had been opened in relation to version 5.8 B4A. He had the same problems with the update SDK 30
But with version 6.0 there is no problem.
So if you use B4A 6.0 dont worry.
 
Upvote 0

Arnaud

Active Member
Licensed User
Longtime User
Hi,

I had the same problem.

I have follow this process ( #31), no problem for google_play_services but now I have an other problem :


java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 6587000 but found 8487000. You must have the following declaration within the <application> element: <meta-data android:name="com.google.android.gms.version" android:value="@Integer/google_play_services_version" />


Can you help me please?
Thank you very much
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
Hi,

I had the same problem.

I have follow this process ( #31), no problem for google_play_services but now I have an other problem :


java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 6587000 but found 8487000. You must have the following declaration within the <application> element: <meta-data android:name="com.google.android.gms.version" android:value="@Integer/google_play_services_version" />


Can you help me please?
Thank you very much

You must copy the files that you have in "X:\Android\extras\..." as:

google-play-services.jar
android-support-v4.jar
android-support-v7-appcompat.jar
android-support-v7-mediarouter.jar
etc...

in your add folder library B4A.
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
This thread was opened when there is version 5.80 and the new SDK.
After a couple of days went out the version 6.0 and everything has been solved.
Strongly suggest to switch to version 6.0
 
Upvote 0

Arnaud

Active Member
Licensed User
Longtime User
I use already version B4A v6.0, but I had different problem when I have updated google play service (v32):

1) google_play_services folder does not exist libproject \ google-play-services_lib \ res
----> I have followed the process (#31) to install google_play_services v29

2) Then, I had the problem with library FusedLocationProvider
----> I have changed library FusedLocationProvider 1.10 to 1.31 (because google_play_services older than version 27)

3) Then, I had the problem with java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value
----> I copy android-support-v4.jar (#37, thanks MarcoRome)

4)Then , I had this error :UNEXPECTED TOP-LEVEL ERROR:java.lang.OutOfMemoryError: Java heap space when I compile
---> I have changed the file ini (b4xV5) to change MaxRamForDex 1024 to 1536


Youpiiiii all works fine, what an adventure !!!

I don't understand why I had this problem with version B4A 6.0 ?

Thank you very much for your help Erel, MarcoRome and all forum !
 
Last edited:
Upvote 0
Top