java - Test with Robolectric and Google Play Service throw me “AndroidManifest.xml does not have the right value -
I have an Android project that has Google Play Services and Robotric Test in the same module, another package. I have this manifest:
& lt; Meta-Data Android: name = "com.google.android.gms.version" android: value = "@ integer / gms_version" />
And this is in integer.xml
But when I run the trial, I get this error:
java.lang.IllegalStateException: Your app's Android manifest. In XML, Meta- The data tag does not have the correct value, expected 4323000, but found 0. You have & lt; Application & gt; Element: & lt; Meta-Data Android: name = "com.google.android.gms.version" android: value = "@ integer / google_play_services_version" />
I tried to keep this tag directly in the manifest but I get a nullpointerexception in getting this value. How can I solve it?
What version of the roboliculture are you using? It was a bug where Robo considered all metadata as a string, but should have been fixed (I am using 2.3 and it works fine)
Optional options are just plain Instead of manually referring to the integer value, instead of referencing it, but to estimate what you are looking for ...
Comments
Post a Comment