When it opens up with a Google card fragment, it closes immediately.
-
Realizing. https://developers.google.com/maps/documentation/android-api/ ♪
Right after the opening, with a fragment Google card, it closes immediately. In the leagues, it's like Warning:
16034/ 16034-16034 D/ChimeraFileApk: Classloading successful, but code may not be optimized. It will either run in fallback (interpreted mode) or the odex has been found and isDexOptNeed is misreporting a failure. 16034-16034 I/Google Maps Android API: Goo Playgle services client version: 8298000 16034-16034 I/Google Maps Android API: Goo Playgle services package version: 8489036 16034-16034 E/dalvikvm: Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.mw.a 19859-20049 A/libc: @@@ABORTING: LIBC: ARGUMENT IS INVALID HEAP ADDRESS IN dlfree addr=0x5fdc2940 19859-20049 A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 20049 (Thread-770) 19859-20025 D/NativeCrypto: ssl=0x62d27948 sslRead buf=0x42263bd0 len=1,timeo=2500
Google, added. Multidexin accordance with https://stackoverflow.com/questions/31342684/getting-error-could-not-find-class-android-app-appopsmanager-referenced-from but it didn't work.
Here's the manifest:
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /> <uses-permission android:name="mypakcagename.permission.MAPS_RECEIVE" /> <uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="mypakcagename.permission.C2D_MESSAGE" />
<permission
android:name="mypakcagename.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<permission
android:name="mypakcagename.permission.MAPS_RECEIVE"
android:protectionLevel="signature" /><uses-feature
android:glEsVersion="0x00020000"
android:required="true" /><application
android:name=".MyApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" ><activity android:name=".activities.AuthenticationActivity" android:label="@string/app_name" android:theme="@style/AppTheme.Auth" android:screenOrientation="portrait" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <receiver android:name="com.google.android.gms.gcm.GcmReceiver" android:exported="true" android:permission="com.google.android.c2dm.permission.SEND" > <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE" /> <action android:name="com.google.android.c2dm.intent.REGISTRATION" /> <category android:name="com.example.gcm" /> </intent-filter> </receiver> <service android:name=".receivers.MyGcmListenerService" android:exported="false" > <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE" /> </intent-filter> </service> <service android:name=".receivers.MyInstanceIDListenerService" android:exported="false"> <intent-filter> <action android:name="com.google.android.gms.iid.InstanceID"/> </intent-filter> </service> <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="@string/maps_api_key" />
</application>
public class MapPane extends Activity implements OnMapReadyCallback {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.map_activity);MapFragment mapFragment = (MapFragment) getFragmentManager() .findFragmentById(R.id.map); mapFragment.getMapAsync(this);
}
@Override
public void onMapReady(GoogleMap map) {}
Can you tell me what the problem is?
-
The problem isn't.
E/dalvikvm: Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.mw.a
, these messages are probably not to be taken into account.The fall occurs as follows:
A/libc: @@@ ABORTING: LIBC: ARGUMENT IS INVALID HEAP ADDRESS IN dlfree addr=0x5fdc2940 A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 20049 (Thread-770)
Google says that this may be related to the incorrect implementation of the multiplicity of the annex - one option is https://stackoverflow.com/questions/10662446/invalid-heap-address-and-fatal-signal-11 But to find out exactly what, you need to watch the code yourself.