That works too. I suggested
set because it’s shorter and it actually does set both. (The difference is that
setenv also calls
Sys.putEnv(), which might matter in other situations.)
if="googlePlus" is evaluated while project.xml is being processed, so you have to have set
googlePlus before then.
GOOGLE_PLAY_GAMES_ID is used in the template copy phase, which happens after Lime has finished processing project.xml and include.xml. So in this case, order doesn’t matter.
But feel free to put things in order if you find that easier than remembering the difference.
Ok, turns out this was another thing I got wrong.
GOOGLE_PLAY_GAMES_ID only sets the value of these two lines, and the problem actually comes from this line. (Don’t delete
GOOGLE_PLAY_GAMES_ID, though. It’s useful for other reasons.)
From all the documentation I found, you shouldn’t need to set
google_play_services_version manually - importing the Google Play Services should be enough.
Can you check
app/build/intermediates/res/merged/release/values/values.xml for that value?
By the way, I fixed a “multiple dex files define” error. Update my library for the fix.