Lex
Aspiring developer
Profile
Posts: 29
Reg: Dec 25, 2013
Ecuador
2,840
01/02/14 03:31 PM (11 years ago)

Error with app Unfortunately appname has stoped

Hi, i'm new here but trying to create my first app and know more about this great service.. bnut now i have a problem, and i can't fin the solution, i hope you can help me... I created an app with 2 tabs, every with an image menu screen... when i launch the app into an emulator in eclipse i see an error "Unfortunately **appname** has stoped". In Logcat i have this: 01-02 22:28:24.900: E/AndroidRuntime(643): FATAL EXCEPTION: main 01-02 22:28:24.900: E/AndroidRuntime(643): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.amavi/com.amavi.BT_activity_host}: java.lang.UnsupportedOperationException: Device does not have package com.google.android.gsf 01-02 22:28:24.900: E/AndroidRuntime(643): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1955) 01-02 22:28:24.900: E/AndroidRuntime(643): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1980) 01-02 22:28:24.900: E/AndroidRuntime(643): at android.app.ActivityThread.access$600(ActivityThread.java:122) 01-02 22:28:24.900: E/AndroidRuntime(643): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1146) 01-02 22:28:24.900: E/AndroidRuntime(643): at android.os.Handler.dispatchMessage(Handler.java:99) 01-02 22:28:24.900: E/AndroidRuntime(643): at android.os.Looper.loop(Looper.java:137) 01-02 22:28:24.900: E/AndroidRuntime(643): at android.app.ActivityThread.main(ActivityThread.java:4340) 01-02 22:28:24.900: E/AndroidRuntime(643): at java.lang.reflect.Method.invokeNative(Native Method) 01-02 22:28:24.900: E/AndroidRuntime(643): at java.lang.reflect.Method.invoke(Method.java:511) 01-02 22:28:24.900: E/AndroidRuntime(643): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 01-02 22:28:24.900: E/AndroidRuntime(643): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 01-02 22:28:24.900: E/AndroidRuntime(643): at dalvik.system.NativeStart.main(Native Method) 01-02 22:28:24.900: E/AndroidRuntime(643): Caused by: java.lang.UnsupportedOperationException: Device does not have package com.google.android.gsf 01-02 22:28:24.900: E/AndroidRuntime(643): at com.google.android.gcm.GCMRegistrar.checkDevice(GCMRegistrar.java:98) 01-02 22:28:24.900: E/AndroidRuntime(643): at com.amavi.BT_activity_host.configureEnvironment(BT_activity_host.java:293) 01-02 22:28:24.900: E/AndroidRuntime(643): at com.amavi.BT_activity_host.onCreate(BT_activity_host.java:128) 01-02 22:28:24.900: E/AndroidRuntime(643): at android.app.Activity.performCreate(Activity.java:4465) 01-02 22:28:24.900: E/AndroidRuntime(643): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) 01-02 22:28:24.900: E/AndroidRuntime(643): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1919) 01-02 22:28:24.900: E/AndroidRuntime(643): ... 11 more Thanks for your help in this error
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
01/02/14 05:58 PM (11 years ago)
You're running the wrong emulator, the android emulator you're using right now can't handle any google apis, for example, cloud messaging, hence your error (Device does not have package com.google.android.gsf) Create a new emulator that runs the target name Google APIs (Google Inc), for the correct one check the PDF that comes in the source code package you downloaded for your project, I can't remember the right one on the top of my head. Hope that helps. Cheers, David
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
01/02/14 06:00 PM (11 years ago)
p.s. Welcome to buzztouch, I didn't notice this was your first post. :-) Highly recommend you keep the BTU lessons going: https://www.buzztouch.com/account/btu.php Cheers, David
 
Lex
Aspiring developer
Profile
Posts: 29
Reg: Dec 25, 2013
Ecuador
2,840
like
01/03/14 08:29 AM (11 years ago)
thanks a lot for your answer.. i will test with another emulator.. but i have the same problem in my own device (Samsung Galaxy Note II)... i installed the app in my own device and has the same error "Unfortunately **appname** has stoped" What can i do? Thanks again PS. I'm check BTU.. but i see that some things are outdated. But anyway I'm checking it all, I hope by the way, these days buy membership in buzztouch, I am very excited about this tool.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/05/14 01:02 AM (11 years ago)
Look in the How-To section of the web site for tutorials by GoNorthWest. Also, check his YouTube channel. -- Niraj
 
Lex
Aspiring developer
Profile
Posts: 29
Reg: Dec 25, 2013
Ecuador
2,840
like
01/09/14 02:54 PM (11 years ago)
Thanks all for answers.. i checked my app again and noted that i forgotted to set up location plugin, i do that todays and have the same error, in console i have this: [2014-01-09 16:47:15 - amavi] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY [2014-01-09 16:47:15 - amavi] Please check logcat output for more details. [2014-01-09 16:47:15 - amavi] Launch canceled! and also this errors in logcat: 01-09 21:47:05.719: E/SoundPool(77): error loading /system/media/audio/ui/Effect_Tick.ogg 01-09 21:47:05.719: E/SoundPool(77): error loading /system/media/audio/ui/Effect_Tick.ogg 01-09 21:47:05.719: E/SoundPool(77): error loading /system/media/audio/ui/Effect_Tick.ogg 01-09 21:47:05.719: E/SoundPool(77): error loading /system/media/audio/ui/Effect_Tick.ogg 01-09 21:47:05.729: E/SoundPool(77): error loading /system/media/audio/ui/Effect_Tick.ogg 01-09 21:47:05.729: E/SoundPool(77): error loading /system/media/audio/ui/KeypressStandard.ogg 01-09 21:47:05.729: E/SoundPool(77): error loading /system/media/audio/ui/KeypressSpacebar.ogg 01-09 21:47:05.729: E/SoundPool(77): error loading /system/media/audio/ui/KeypressDelete.ogg 01-09 21:47:05.729: E/SoundPool(77): error loading /system/media/audio/ui/KeypressReturn.ogg 01-09 21:47:06.359: E/AndroidRuntime(321): FATAL EXCEPTION: main 01-09 21:47:06.359: E/AndroidRuntime(321): java.lang.RuntimeException: Unable to start receiver com.android.quicksearchbox.SearchWidgetProvider: java.lang.NullPointerException 01-09 21:47:06.359: E/AndroidRuntime(321): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2125) 01-09 21:47:06.359: E/AndroidRuntime(321): at android.app.ActivityThread.access$1500(ActivityThread.java:122) 01-09 21:47:06.359: E/AndroidRuntime(321): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 01-09 21:47:06.359: E/AndroidRuntime(321): at android.os.Handler.dispatchMessage(Handler.java:99) 01-09 21:47:06.359: E/AndroidRuntime(321): at android.os.Looper.loop(Looper.java:137) 01-09 21:47:06.359: E/AndroidRuntime(321): at android.app.ActivityThread.main(ActivityThread.java:4340) 01-09 21:47:06.359: E/AndroidRuntime(321): at java.lang.reflect.Method.invokeNative(Native Method) 01-09 21:47:06.359: E/AndroidRuntime(321): at java.lang.reflect.Method.invoke(Method.java:511) 01-09 21:47:06.359: E/AndroidRuntime(321): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 01-09 21:47:06.359: E/AndroidRuntime(321): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 01-09 21:47:06.359: E/AndroidRuntime(321): at dalvik.system.NativeStart.main(Native Method) 01-09 21:47:06.359: E/AndroidRuntime(321): Caused by: java.lang.NullPointerException 01-09 21:47:06.359: E/AndroidRuntime(321): at android.app.PendingIntent.getActivity(PendingIntent.java:195) 01-09 21:47:06.359: E/AndroidRuntime(321): at com.android.quicksearchbox.SearchWidgetProvider$SearchWidgetState.setOnClickActivityIntent(SearchWidgetProvider.java:185) 01-09 21:47:06.359: E/AndroidRuntime(321): at com.android.quicksearchbox.SearchWidgetProvider$SearchWidgetState.updateWidget(SearchWidgetProvider.java:166) 01-09 21:47:06.359: E/AndroidRuntime(321): at com.android.quicksearchbox.SearchWidgetProvider.updateSearchWidgets(SearchWidgetProvider.java:94) 01-09 21:47:06.359: E/AndroidRuntime(321): at com.android.quicksearchbox.SearchWidgetProvider.onReceive(SearchWidgetProvider.java:69) 01-09 21:47:06.359: E/AndroidRuntime(321): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2118) 01-09 21:47:06.359: E/AndroidRuntime(321): ... 10 more 01-09 21:47:06.519: A/NetworkStats(77): problem reading network stats 01-09 21:47:06.519: A/NetworkStats(77): java.lang.IllegalStateException: problem parsing line: null 01-09 21:47:06.519: A/NetworkStats(77): at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:313) 01-09 21:47:06.519: A/NetworkStats(77): at com.android.server.NetworkManagementService.getNetworkStatsUidDetail(NetworkManagementService.java:1271) 01-09 21:47:06.519: A/NetworkStats(77): at com.android.server.net.NetworkStatsService.performPollLocked(NetworkStatsService.java:810) 01-09 21:47:06.519: A/NetworkStats(77): at com.android.server.net.NetworkStatsService.updateIfacesLocked(NetworkStatsService.java:721) 01-09 21:47:06.519: A/NetworkStats(77): at com.android.server.net.NetworkStatsService.updateIfaces(NetworkStatsService.java:699) 01-09 21:47:06.519: A/NetworkStats(77): at com.android.server.net.NetworkStatsService.access$000(NetworkStatsService.java:128) 01-09 21:47:06.519: A/NetworkStats(77): at com.android.server.net.NetworkStatsService$1.onReceive(NetworkStatsService.java:589) 01-09 21:47:06.519: A/NetworkStats(77): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:728) 01-09 21:47:06.519: A/NetworkStats(77): at android.os.Handler.handleCallback(Handler.java:605) 01-09 21:47:06.519: A/NetworkStats(77): at android.os.Handler.dispatchMessage(Handler.java:92) 01-09 21:47:06.519: A/NetworkStats(77): at android.os.Looper.loop(Looper.java:137) 01-09 21:47:06.519: A/NetworkStats(77): at android.os.HandlerThread.run(HandlerThread.java:60) 01-09 21:47:06.519: A/NetworkStats(77): Caused by: java.io.FileNotFoundException: /proc/net/xt_qtaguid/stats: open failed: ENOENT (No such file or directory) 01-09 21:47:06.519: A/NetworkStats(77): at libcore.io.IoBridge.open(IoBridge.java:406) 01-09 21:47:06.519: A/NetworkStats(77): at java.io.FileInputStream.<init>(FileInputStream.java:78) 01-09 21:47:06.519: A/NetworkStats(77): at java.io.FileReader.<init>(FileReader.java:42) 01-09 21:47:06.519: A/NetworkStats(77): at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:272) 01-09 21:47:06.519: A/NetworkStats(77): ... 11 more 01-09 21:47:06.519: A/NetworkStats(77): Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory) 01-09 21:47:06.519: A/NetworkStats(77): at libcore.io.Posix.open(Native Method) 01-09 21:47:06.519: A/NetworkStats(77): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:98) 01-09 21:47:06.519: A/NetworkStats(77): at libcore.io.IoBridge.open(IoBridge.java:390) 01-09 21:47:06.519: A/NetworkStats(77): ... 14 more 01-09 21:47:11.098: E/DefaultVoicemailNotifier(370): No voicemails to notify about: clear the notification. 01-09 21:47:14.858: E/PackageManager(77): Package com.amavi requires unavailable shared library com.google.android.maps; failing! 01-09 21:49:28.198: E/AndroidRuntime(503): FATAL EXCEPTION: main 01-09 21:49:28.198: E/AndroidRuntime(503): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.amavi/com.amavi.BT_activity_host}: java.lang.UnsupportedOperationException: Device does not have package com.google.android.gsf 01-09 21:49:28.198: E/AndroidRuntime(503): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1955) 01-09 21:49:28.198: E/AndroidRuntime(503): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1980) 01-09 21:49:28.198: E/AndroidRuntime(503): at android.app.ActivityThread.access$600(ActivityThread.java:122) 01-09 21:49:28.198: E/AndroidRuntime(503): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1146) 01-09 21:49:28.198: E/AndroidRuntime(503): at android.os.Handler.dispatchMessage(Handler.java:99) 01-09 21:49:28.198: E/AndroidRuntime(503): at android.os.Looper.loop(Looper.java:137) 01-09 21:49:28.198: E/AndroidRuntime(503): at android.app.ActivityThread.main(ActivityThread.java:4340) 01-09 21:49:28.198: E/AndroidRuntime(503): at java.lang.reflect.Method.invokeNative(Native Method) 01-09 21:49:28.198: E/AndroidRuntime(503): at java.lang.reflect.Method.invoke(Method.java:511) 01-09 21:49:28.198: E/AndroidRuntime(503): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 01-09 21:49:28.198: E/AndroidRuntime(503): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 01-09 21:49:28.198: E/AndroidRuntime(503): at dalvik.system.NativeStart.main(Native Method) 01-09 21:49:28.198: E/AndroidRuntime(503): Caused by: java.lang.UnsupportedOperationException: Device does not have package com.google.android.gsf 01-09 21:49:28.198: E/AndroidRuntime(503): at com.google.android.gcm.GCMRegistrar.checkDevice(GCMRegistrar.java:98) 01-09 21:49:28.198: E/AndroidRuntime(503): at com.amavi.BT_activity_host.configureEnvironment(BT_activity_host.java:293) 01-09 21:49:28.198: E/AndroidRuntime(503): at com.amavi.BT_activity_host.onCreate(BT_activity_host.java:128) 01-09 21:49:28.198: E/AndroidRuntime(503): at android.app.Activity.performCreate(Activity.java:4465) 01-09 21:49:28.198: E/AndroidRuntime(503): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) 01-09 21:49:28.198: E/AndroidRuntime(503): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1919) 01-09 21:49:28.198: E/AndroidRuntime(503): ... 11 more Maybe some idea?? thanks again
 
Lex
Aspiring developer
Profile
Posts: 29
Reg: Dec 25, 2013
Ecuador
2,840
like
01/09/14 03:06 PM (11 years ago)
Also.. i'm using a new emulator with correct Google Apis
 
Lex
Aspiring developer
Profile
Posts: 29
Reg: Dec 25, 2013
Ecuador
2,840
like
01/14/14 12:21 PM (11 years ago)
Some idea? nothing?...
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.