I get an error when initializing the map, when I try to use the map as an external library and try to make a secondary one, apk is created, and when I tried to start the map, it worked. But when I tried the same without dex, it works fine (stacktrace below).
How can I solve this problem? I encountered exceeding the limit of 65536. So, this is the only way to create apk, and I'm using ant.
java.lang.NoClassDefFoundError: com.google.android.gms.R$styleable 10-06 22:20:24.374: E/AndroidRuntime(17015): at com.google.android.gms.maps.GoogleMapOptions.createFromAttributes(Unknown Source) 10-06 22:20:24.374: E/AndroidRuntime(17015): at com.google.android.gms.maps.SupportMapFragment.onInflate(Unknown Source) 10-06 22:20:24.374: E/AndroidRuntime(17015): at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:291) 10-06 22:20:24.374: E/AndroidRuntime(17015): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
source share