After updating Android Target SDK from 33 to 34 the configuration is no longer valid (i.e platform_configuration_->Valid() == false).
I get the following error messages from Google Play Games Services C++
1 GamesNativeSDK V Using classes from /data/user/0/com.mycompany.myapp/app_.gpg.classloader/4105d0375b9d69fe6ee3a07b7893a4f1_games.jar.
2 GamesNativeSDK I Using existing jar.
3 GamesNativeSDK I Writing 1881 bytes to jar file
a.myapp E Attempt to load writable dex file: /data/user/0/com.mycompany.myapp/app_.gpg.classloader/4105d0375b9d69fe6ee3a07b7893a4f1_games.jar
4 Compatibil...geReporter D Compat change id reported: 218865702; UID 10402; state: ENABLED
5 GamesNativeSDK E Exception in dalvik/system/DexClassLoader.<init>: java.lang.SecurityException: Writable dex file '/data/user/0/com.mycompany.myapp/app_.gpg.classloader/4105d0375b9d69fe6ee3a07b7893a4f1_games.jar' is not allowed..
6 GamesNativeSDK E Could not create class loader from file.
7 GamesNativeSDK E Could not load additional classes from embedded jar.
It seems to be related to this question: Problems encountered when developing apps with Android 14
As suggested in the above question, when I added
File(Context.getDataDir() + "/app_.gpg.classloader/4105d0375b9d69fe6ee3a07b7893a4f1_games.jar").setReadOnly();
to my activity onCreate method, log messages 2,3,4, and 5 do not show anymore. Still, the other log messages show, and the initialization of Game Services fail.
Does anyone know of any solution to this?