Com.tools.fd.runtime.BootstrapApplication will not start if you do not update the Google Play services

I am trying to make a button (in my case, ImageButton) that will locate the user on a Google map. I have done it so far, and when I click a button in the application simulator; "com.tools.fd.runtime.BootstrapApplication will not work unless you upgrade the Google Play services." Here is my code:

built.gradle

apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "25.0.0" defaultConfig { applicationId "com.example.konarx.a11042016" minSdkVersion 14 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.google.android.gms:play-services:9.8.0' testCompile 'junit:junit:4.12' compile 'com.google.android.gms:play-services-maps:9.8.0' } 

MapsActivity.class

 package com.example.konarx.a11042016; import android.os.Bundle; import com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.OnMapReadyCallback; import com.google.android.gms.maps.SupportMapFragment; import com.google.android.gms.maps.model.LatLng; import com.google.android.gms.maps.model.MarkerOptions; public class MapsActivity extends MainScreen implements OnMapReadyCallback { private GoogleMap mMap; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_maps); SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager() .findFragmentById(R.id.map); mapFragment.getMapAsync(this); } @Override public void onMapReady(GoogleMap googleMap) { mMap = googleMap; LatLng sydney = new LatLng(-34, 151); mMap.addMarker(new MarkerOptions().position(sydney).title("Marker in Sydney")); mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney)); } } 
+6
source share
2 answers

I ran into the same problem.

In your build.gradle, downgrade the game services version to 9.6.0

 dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:25.0.0' compile 'com.google.android.gms:play-services:9.6.0' testCompile 'junit:junit:4.12' } 
+15
source

I used Nougat (API 25) when this happened to me. Using another API package (I ended up using API 23 Marshmallow on a new emulator) fixed it for me. I used game services version 10.0.1 in my project, and downgrading my game service was not an option, since Firebase required 10.0.1.

+2
source

Source: https://habr.com/ru/post/1012046/


All Articles