1. Nimm jetzt an unserem Uhans - 3. ADVENT - Gewinnspiel teil - Alle Informationen findest Du hier!

MapView Tutorial - ApiKey Probleme

Dieses Thema im Forum "Android App Entwicklung" wurde erstellt von herrmie, 21.10.2009.

  1. herrmie, 21.10.2009 #1
    herrmie

    herrmie Threadstarter Neuer Benutzer

    Beiträge:
    13
    Erhaltene Danke:
    0
    Registriert seit:
    21.10.2009
    Hallo Gemeinde,

    ich habe das Tutorial Hello, MapView | Android Developers durchgearbeitet und bekomme beim starten des Programms einen Fehler: "The Application [...] has stopped unexpectedly. Please try again."

    Es kann normalerweise nur an dem APIKey liegen, habe es aber mit 2 Stück ausprobiert und immer wieder diesen Fehler bekommen.
    Weiß vielleicht jemand Rat? Denn ich muss für eine Studienarbeit mit Android arbeiten und da es mit Navigation zu tun hat, bräuchte ich google maps. ;)

    Danke schonmal.

    Gruß
    herrmie
     
  2. swordi, 21.10.2009 #2
    swordi

    swordi Gewerbliches Mitglied

    Beiträge:
    3,389
    Erhaltene Danke:
    441
    Registriert seit:
    09.05.2009
    naja poste uns mal den stacktrace ( im eclipse unter der view debug, siehst du den stacktrace und die exception )
     
  3. herrmie, 21.10.2009 #3
    herrmie

    herrmie Threadstarter Neuer Benutzer

    Beiträge:
    13
    Erhaltene Danke:
    0
    Registriert seit:
    21.10.2009
    Meinst du das?

    [2009-10-21 21:39:47 - HelloMapView]------------------------------
    [2009-10-21 21:39:47 - HelloMapView]Android Launch!
    [2009-10-21 21:39:47 - HelloMapView]adb is running normally.
    [2009-10-21 21:39:47 - HelloMapView]Performing com.herrmie.android.HelloMapView activity launch
    [2009-10-21 21:39:47 - HelloMapView]Automatic Target Mode: launching new emulator with compatible AVD 'GoogleAVD'
    [2009-10-21 21:39:47 - HelloMapView]Launching a new emulator with Virtual Device 'GoogleAVD'
    [2009-10-21 21:39:49 - HelloMapView]New emulator found: emulator-5554
    [2009-10-21 21:39:49 - HelloMapView]Waiting for HOME ('android.process.acore') to be launched...
    [2009-10-21 21:40:17 - HelloMapView]HOME is up on device 'emulator-5554'
    [2009-10-21 21:40:17 - HelloMapView]Uploading HelloMapView.apk onto device 'emulator-5554'
    [2009-10-21 21:40:17 - HelloMapView]Installing HelloMapView.apk...
    [2009-10-21 21:40:26 - HelloMapView]Success!
    [2009-10-21 21:40:26 - HelloMapView]Starting activity com.herrmie.android.HelloMapView on device
    [2009-10-21 21:40:32 - HelloMapView]ActivityManager: Starting: Intent { cmp=com.herrmie.android/.HelloMapView }
    [2009-10-21 21:43:29 - HelloMapView]------------------------------
    [2009-10-21 21:43:29 - HelloMapView]Android Launch!
    [2009-10-21 21:43:29 - HelloMapView]adb is running normally.
    [2009-10-21 21:43:29 - HelloMapView]Performing com.herrmie.android.HelloMapView activity launch
    [2009-10-21 21:43:29 - HelloMapView]Automatic Target Mode: launching new emulator with compatible AVD 'GoogleAVD'
    [2009-10-21 21:43:29 - HelloMapView]Launching a new emulator with Virtual Device 'GoogleAVD'
    [2009-10-21 21:43:29 - HelloMapView]New emulator found: emulator-5554
    [2009-10-21 21:43:29 - HelloMapView]Waiting for HOME ('android.process.acore') to be launched...
    [2009-10-21 21:43:48 - HelloMapView]HOME is up on device 'emulator-5554'
    [2009-10-21 21:43:48 - HelloMapView]Uploading HelloMapView.apk onto device 'emulator-5554'
    [2009-10-21 21:43:48 - HelloMapView]Installing HelloMapView.apk...
    [2009-10-21 21:43:57 - HelloMapView]Success!
    [2009-10-21 21:43:57 - HelloMapView]Starting activity com.herrmie.android.HelloMapView on device
    [2009-10-21 21:44:01 - HelloMapView]ActivityManager: Starting: Intent { cmp=com.herrmie.android/.HelloMapView }
     
  4. swordi, 21.10.2009 #4
    swordi

    swordi Gewerbliches Mitglied

    Beiträge:
    3,389
    Erhaltene Danke:
    441
    Registriert seit:
    09.05.2009
    nöp das ist nicht die debug ausgabe. klick oben auf die view DEBUG, dann bekommst du ausgaben vom emulator
     
  5. herrmie, 22.10.2009 #5
    herrmie

    herrmie Threadstarter Neuer Benutzer

    Beiträge:
    13
    Erhaltene Danke:
    0
    Registriert seit:
    21.10.2009
    10-22 12:30:44.051: ERROR/vold(538): Error opening switch name path '/sys/class/switch/test2' (No such file or directory)
    10-22 12:30:44.051: ERROR/vold(538): Error bootstrapping switch '/sys/class/switch/test2' (No such file or directory)
    10-22 12:30:44.051: ERROR/vold(538): Error opening switch name path '/sys/class/switch/test' (No such file or directory)
    10-22 12:30:44.051: ERROR/vold(538): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory)
    10-22 12:30:53.301: ERROR/jdwp(571): Failed sending req to debugger: Broken pipe (-1 of 27)
    10-22 12:30:53.321: ERROR/jdwp(571): Failed sending req to debugger: Broken pipe (-1 of 27)
    10-22 12:30:53.331: ERROR/jdwp(571): Failed sending reply to debugger: Broken pipe
    10-22 12:30:53.551: ERROR/MemoryHeapBase(571): error opening /dev/pmem: No such file or directory
    10-22 12:30:53.551: ERROR/SurfaceFlinger(571): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
    10-22 12:30:53.592: ERROR/libEGL(571): couldn't load <libhgl.so> library (Cannot load library: load_library[984]: Library 'libhgl.so' not found)
    10-22 12:30:53.961: ERROR/libEGL(588): couldn't load <libhgl.so> library (Cannot load library: load_library[984]: Library 'libhgl.so' not found)
    10-22 12:30:56.551: ERROR/BatteryService(571): Could not open '/sys/class/power_supply/usb/online'
    10-22 12:30:56.551: ERROR/BatteryService(571): Could not open '/sys/class/power_supply/battery/batt_vol'
    10-22 12:30:56.551: ERROR/BatteryService(571): Could not open '/sys/class/power_supply/battery/batt_temp'
    10-22 12:30:56.881: ERROR/EventHub(571): could not get driver version for /dev/input/mouse0, Not a typewriter
    10-22 12:30:56.921: ERROR/System(571): Failure starting core service
    10-22 12:30:56.921: ERROR/System(571): java.lang.SecurityException
    10-22 12:30:56.921: ERROR/System(571): at android.os.BinderProxy.transact(Native Method)
    10-22 12:30:56.921: ERROR/System(571): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
    10-22 12:30:56.921: ERROR/System(571): at android.os.ServiceManager.addService(ServiceManager.java:72)
    10-22 12:30:56.921: ERROR/System(571): at com.android.server.ServerThread.run(SystemServer.java:162)
    10-22 12:30:56.921: ERROR/EventHub(571): could not get driver version for /dev/input/mice, Not a typewriter
    10-22 12:30:56.931: ERROR/AndroidRuntime(571): Crash logging skipped, no checkin service
    10-22 12:30:57.862: ERROR/LockPatternKeyguardView(571): Failed to bind to GLS while checking for account
    10-22 12:30:58.581: ERROR/jdwp(618): Failed sending req to debugger: Broken pipe (-1 of 27)
    10-22 12:30:58.591: ERROR/jdwp(618): Failed sending req to debugger: Broken pipe (-1 of 27)
    10-22 12:30:58.591: ERROR/jdwp(618): Failed sending reply to debugger: Broken pipe
    10-22 12:31:00.701: ERROR/ActivityThread(620): Failed to find provider info for com.google.settings
    10-22 12:31:00.711: ERROR/ActivityThread(620): Failed to find provider info for com.google.settings
    10-22 12:31:04.351: ERROR/ApplicationContext(571): Couldn't create directory for SharedPreferences file shared_prefs/wallpaper-hints.xml
    10-22 12:31:06.081: ERROR/vold(538): Cannot start volume '/sdcard' (volume is not bound)
    10-22 12:31:03.067: ERROR/ActivityThread(618): Failed to find provider info for android.server.checkin
    10-22 12:31:05.466: ERROR/ActivityThread(618): Failed to find provider info for android.server.checkin
    10-22 12:31:05.646: ERROR/ActivityThread(618): Failed to find provider info for android.server.checkin
    10-22 12:31:06.056: ERROR/MediaPlayerService(542): Couldn't open fd for content://settings/system/notification_sound
    10-22 12:31:06.066: ERROR/MediaPlayer(571): Unable to to create media player
    10-22 12:31:06.116: ERROR/ActivityThread(704): Failed to find provider info for com.google.settings
    10-22 12:31:06.116: ERROR/ActivityThread(704): Failed to find provider info for com.google.settings
    10-22 12:31:07.256: ERROR/ActivityThread(571): Failed to find provider info for com.google.settings
    10-22 12:31:07.256: ERROR/ActivityThread(571): Failed to find provider info for com.google.settings
    10-22 12:31:25.476: ERROR/ActivityThread(739): Failed to find provider info for com.google.settings
    10-22 12:31:25.476: ERROR/ActivityThread(739): Failed to find provider info for com.google.settings
    10-22 12:31:25.696: ERROR/ActivityThread(739): Failed to find provider info for com.google.settings
    10-22 12:31:25.816: ERROR/AndroidRuntime(739): Uncaught handler: thread main exiting due to uncaught exception
    10-22 12:31:25.836: ERROR/AndroidRuntime(739): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.herrmie.android/com.herrmie.android.HelloMapView}: java.lang.NullPointerException
    10-22 12:31:25.836: ERROR/AndroidRuntime(739): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401)
    10-22 12:31:25.836: ERROR/AndroidRuntime(739): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
    10-22 12:31:25.836: ERROR/AndroidRuntime(739): at android.app.ActivityThread.access$2100(ActivityThread.java:116)
    10-22 12:31:25.836: ERROR/AndroidRuntime(739): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
    10-22 12:31:25.836: ERROR/AndroidRuntime(739): at android.os.Handler.dispatchMessage(Handler.java:99)
    10-22 12:31:25.836: ERROR/AndroidRuntime(739): at android.os.Looper.loop(Looper.java:123)
    10-22 12:31:25.836: ERROR/AndroidRuntime(739): at android.app.ActivityThread.main(ActivityThread.java:4203)
    10-22 12:31:25.836: ERROR/AndroidRuntime(739): at java.lang.reflect.Method.invokeNative(Native Method)
    10-22 12:31:25.836: ERROR/AndroidRuntime(739): at java.lang.reflect.Method.invoke(Method.java:521)
    10-22 12:31:25.836: ERROR/AndroidRuntime(739): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
    10-22 12:31:25.836: ERROR/AndroidRuntime(739): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
    10-22 12:31:25.836: ERROR/AndroidRuntime(739): at dalvik.system.NativeStart.main(Native Method)
    10-22 12:31:25.836: ERROR/AndroidRuntime(739): Caused by: java.lang.NullPointerException
    10-22 12:31:25.836: ERROR/AndroidRuntime(739): at com.herrmie.android.HelloMapView.onCreate(HelloMapView.java:39)
    10-22 12:31:25.836: ERROR/AndroidRuntime(739): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
    10-22 12:31:25.836: ERROR/AndroidRuntime(739): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2364)
    10-22 12:31:25.836: ERROR/AndroidRuntime(739): ... 11 more
    10-22 12:31:25.866: ERROR/dalvikvm(739): Unable to open stack trace file '/data/anr/traces.txt': Permission denied
     

Diese Seite empfehlen