Map only click on my device

Asked

Viewed 59 times

1

I have a map in a fragment. I already solved all as key questions, created the signed apk, is not what I want to do and I did not put any console google developer, with the name of the project. A key created put in the app manifest and created a new signed apk. Turns out the map doesn’t load my phone. In my mother’s, as I open the error map fragment and the app closes Just like a friend in my class Both copy the signed apk and one of them debugged straight on mobile and still did not work.

Follow exactly what is this tutorial for key creation http://ninjadevspace.com/mapa-em-uma-aplicacao-android/

The mistake I have not my friend’s device is: Remembering that there is 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) 

1 answer

0

Try following this tutorial video lesson is quite simple to see the implementation of one in the 1(v1) and 2(v2) versions of maps

Browser other questions tagged

You are not signed in. Login or sign up in order to post.