0

I have problem to run simply app with GoogleMapsApiV2.

I did tutorial from this movie: http://www.youtube.com/watch?v=awX5T-EwLPc and I have error's on 13:00 minutes, when trying to run app (the problem arises on Emulator and Galaxy S)

Log Cat Error's: http://cpaste.eu/1398

Code's:

Has anyone an idea how to solve it?

Turc
  • 27
  • 5

1 Answers1

0

Your class should extend android.support.v4.app.FragmentActivity, not its parent android.app.Activity. The telling line in the logs is:

07-09 21:12:54.634: E/AndroidRuntime(416): Caused by: java.lang.ClassNotFoundException: android.view.fragment in loader

Inheriting from FragmentActivity should correct this Exception.

import android.support.v4.app.FragmentActivity;

public class MyActivity extends FragmentActivity {
    // your code
}
doublesharp
  • 26,888
  • 6
  • 52
  • 73
  • Make sure you are including and exporting `google-play-services.jar` – doublesharp Jul 09 '13 at 20:23
  • I have add library in app Properties -> Android -> Add library and select google-play-services_lib. Errors: Console: http://cpaste.eu/1404 LogCat: http://cpaste.eu/1405. In console error's something about google-play-services.apk... not found – Turc Jul 09 '13 at 21:44