Android Question Getting a compilation error

Indy

Active Member
Licensed User
Longtime User
Hi Folks,

I made a change to my SDK setup because I was trying to get an emulator image setup for Android 4.4. However, since having done that I cannot compile my project and yet it working absolutely perfectly before. I'm not sure what the error is pointing at.

B4X:
B4A version: 5.50
Parsing code.  (0.07s)
Compiling code.  (0.05s)
Compiling layouts code.  (0.00s)
Generating R file.  Error
e:\!development\android-sdk\extras\google\google_play_services\libproject\google-play-services_lib\res\values-v21\appinvite_styles.xml:5: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Material.Light.DialogWhenLarge.NoActionBar'.

I have not changed anything in the project.

Thanks
 

Indy

Active Member
Licensed User
Longtime User
The path set by the #AdditionalRes attribute is not correct.
But nothing has changed. The path is exactly the same as it was before. The only difference I have noticed is all the folders in that path now have a timestamp of today, which is most likely becuase the SDK Manager has updated all the components due to my attempt to create a new virtual test device.
 
Upvote 0

Indy

Active Member
Licensed User
Longtime User
Use a newer version of android.jar (set under Tools - Configure Paths).
Thank you Erel. That fixed it. However, I'm baffled what happened? All I tried to do was setup a device on the emulator.

Anyway, thanks again.
 
Upvote 0

Indy

Active Member
Licensed User
Longtime User
Erel,

Spoke a bit too soon. The compilation is working and my intro screen loads fine. However, when my page that has the Google Map on it loads, the app immediately crashes and give the error;
B4X:
java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value.  Expected 8298000 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" />

Do you think I need to re-generate the API key again?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…