Map loads only on my device

1

I have a map in a fragment. I already solved all as key questions, I created the signed apk, it is not what I want to do and I did not put any google developer console, with the name of the project. A created key I placed in the manifest of the app and created a new signed apk. It turns out the map does not carry my cell phone. On my mother's, just as I open the error map fragment and the app closes Just like a friend in my room Both copied the signed apk and one of them debuguei straight into the cell phone and still did not work.

Follow exactly what this tutorial is for creating the key link

The error I have not my friend's device is: Remembering there's nothing for my cell phone

FATAL EXCEPTION: main Process: com.example.gabi.busk_13_09, PID: 2874
android.view.InflateException: Binary XML file line #7: Binary XML file line #7: Error inflating class fragment
   at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
   at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
   at Fragments.Fragment_mapa.onCreateView(Fragment_mapa.java:62)
   at android.app.Fragment.performCreateView(Fragment.java:2229)
   at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:973)
   at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1148)
   at android.app.BackStackRecord.run(BackStackRecord.java:793)
   at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1535)
   at android.app.FragmentManagerImpl$1.run(FragmentManager.java:482)
   at android.os.Handler.handleCallback(Handler.java:739)
   at android.os.Handler.dispatchMessage(Handler.java:95)
   at android.os.Looper.loop(Looper.java:148)
   at android.app.ActivityThread.main(ActivityThread.java:5530)
   at java.lang.reflect.Method.invoke(Native Method)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:733)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:623)
Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class fragment
   at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:782)
   at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
   at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
   at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
   at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
   at android.view.LayoutInflater.inflate(LayoutInflater.java:423) 
   at Fragments.Fragment_mapa.onCreateView(Fragment_mapa.java:62) 
   at android.app.Fragment.performCreateView(Fragment.java:2229) 
   at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:973) 
   at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1148) 
   at android.app.BackStackRecord.run(BackStackRecord.java:793) 
   at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1535) 
   at android.app.FragmentManagerImpl$1.run(FragmentManager.java:482) 
   at android.os.Handler.handleCallback(Handler.java:739) 
   at android.os.Handler.dispatchMessage(Handler.java:95) 
   at android.os.Looper.loop(Looper.java:148) 
   at android.app.ActivityThread.main(ActivityThread.java:5530) 
   at java.lang.reflect.Method.invoke(Native Method) 
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:733) 
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:623) 
Caused by: android.app.Fragment$InstantiationException: Trying to instantiate a class com.google.android.gms.maps.SupportMapFragment that is not a Fragment
   at android.app.Fragment.instantiate(Fragment.java:608)
   at android.app.Fragment.instantiate(Fragment.java:584)
   at android.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2192)
   at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:186)
   at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:754)
   at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704) 
   at android.view.LayoutInflater.rInflate(LayoutInflater.java:835) 
   at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798) 
   at android.view.LayoutInflater.inflate(LayoutInflater.java:515) 
   at android.view.LayoutInflater.inflate(LayoutInflater.java:423) 
   at Fragments.Fragment_mapa.onCreateView(Fragment_mapa.java:62) 
   at android.app.Fragment.performCreateView(Fragment.java:2229) 
   at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:973) 
   at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1148) 
   at android.app.BackStackRecord.run(BackStackRecord.java:793) 
   at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1535) 
   at android.app.FragmentManagerImpl$1.run(FragmentManager.java:482) 
   at android.os.Handler.handleCallback(Handler.java:739) 
   at android.os.Handler.dispatchMessage(Handler.java:95) 
   at android.os.Looper.loop(Looper.java:148) 
   at android.app.ActivityThread.main(ActivityThread.java:5530) 
   at java.lang.reflect.Method.invoke(Native Method) 
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:733) 
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:623) 
Caused by: java.lang.ClassCastException
   at android.app.Fragment.instantiate(Fragment.java:608) 
   at android.app.Fragment.instantiate(Fragment.java:584) 
   at android.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2192) 
   at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:186) 
   at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:754) 
   at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704) 
   at android.view.LayoutInflater.rInflate(LayoutInflater.java:835) 
   at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798) 
   at android.view.LayoutInflater.inflate(LayoutInflater.java:515) 
   at android.view.LayoutInflater.inflate(LayoutInflater.java:423) 
   at Fragments.Fragment_mapa.onCreateView(Fragment_mapa.java:62) 
   at android.app.Fragment.performCreateView(Fragment.java:2229) 
   at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:973) 
   at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1148) 
   at android.app.BackStackRecord.run(BackStackRecord.java:793) 
   at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1535) 
   at android.app.FragmentManagerImpl$1.run(FragmentManager.java:482) 
   at android.os.Handler.handleCallback(Handler.java:739) 
   at android.os.Handler.dispatchMessage(Handler.java:95) 
   at android.os.Looper.loop(Looper.java:148) 
   at android.app.ActivityThread.main(ActivityThread.java:5530) 
   at java.lang.reflect.Method.invoke(Native Method) 
    
asked by anonymous 08.11.2016 / 00:02

1 answer

0

Try this tutorial video Lesson it is very simple to see the implementation of one in the versions 1 (v1) and 2 (v2) of maps

    
09.11.2016 / 12:11