SHARE
TWEET

Untitled

a guest Jun 25th, 2019 241 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class MapsActivity extends FragmentActivity {
  2.  
  3. private GoogleMap mMap;
  4.  
  5. @Override
  6. public void onCreate(Bundle savedInstanceState) {
  7.     super.onCreate(savedInstanceState);
  8.     setContentView(R.layout.maps);
  9.     setUpMapIfNeeded();
  10. }
  11. ...
  12.      
  13. startActivity(new Intent(this, MapsActivity.class));
  14.      
  15. <activity android:name="de.xbjoernx.gapp.MapsActivity"></activity>
  16.      
  17. FATAL EXCEPTION: main
  18. java.lang.RuntimeException: Unable to start activity ComponentInfo{de.xbjoernx.gapp/de.xbjoernx.gapp.MapsActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class fragment
  19.         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2308)
  20.         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2358)
  21.         at android.app.ActivityThread.access$600(ActivityThread.java:153)
  22.         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1247)
  23.         at android.os.Handler.dispatchMessage(Handler.java:99)
  24.         at android.os.Looper.loop(Looper.java:137)
  25.         at android.app.ActivityThread.main(ActivityThread.java:5227)
  26.         at java.lang.reflect.Method.invokeNative(Native Method)
  27.         at java.lang.reflect.Method.invoke(Method.java:511)
  28.         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
  29.         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
  30.         at dalvik.system.NativeStart.main(Native Method)
  31. Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class fragment
  32.         at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
  33.         at android.view.LayoutInflater.inflate(LayoutInflater.java:466)
  34.         at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
  35.         at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
  36.         at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:323)
  37.         at android.app.Activity.setContentView(Activity.java:1881)
  38.         at de.xbjoernx.gapp.MapsActivity.onCreate(MapsActivity.java:19)
  39.         at android.app.Activity.performCreate(Activity.java:5104)
  40.         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
  41.         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2262)
  42.         ... 11 more
  43. Caused by: java.lang.ClassCastException: com.google.android.gms.maps.MapFragment cannot be cast to android.support.v4.app.Fragment
  44.         at android.support.v4.app.Fragment.instantiate(Fragment.java:394)
  45.         at android.support.v4.app.Fragment.instantiate(Fragment.java:369)
  46.         at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:272)
  47.         at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:676)
  48.         ... 20 more
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top