[Q] Setting up ADT

Search This thread

Marcatus

Member
Apr 23, 2014
9
0
I'm having difficulty to run a simple hello world project on AVD. In the console it says:

"[2014-07-14 21:32:56 - TryApp] Installing TryApp.apk... [2014-07-14 21:35:09 - TryApp] Failed to install TryApp.apk on device 'emulator-5554! [2014-07-14 21:35:09 - TryApp] (null) [2014-07-14 21:35:09 - TryApp] Launch canceled!"

Also when i first created the project the console had some warnings:

"[2014-07-14 21:26:01 - appcompat_v7] WARNING: unable to write jarlist cache file C:\Users\Marcatus X\workspace\appcompat_v7\bin\jarlist.cache [2014-07-14 21:26:01 - appcompat_v7] WARNING: unable to write jarlist cache file C:\Users\Marcatus X\workspace\appcompat_v7\bin\jarlist.cache"

I believe I installed eclipse and adt correctly. The ADT bundle had some issues so i had to download everything separately and put them in the same folder. The eclipse says its Luna, and installed the latest Android SDK tools 23.0.2. I would appreciate any help to get me going in Android development.
 

Marcatus

Member
Apr 23, 2014
9
0
So I tried to run again. Its says in the emulator: :"Tryapp has stopped"
And i get an error in the logcat
"07-15 02:48:47.680: I/Process(834): Sending signal. PID: 834 SIG: 9
07-15 02:51:16.800: D/AndroidRuntime(876): Shutting down VM
07-15 02:51:16.800: W/dalvikvm(876): threadid=1: thread exiting with uncaught exception (group=0xb3ac5d70)
07-15 02:51:16.840: E/AndroidRuntime(876): FATAL EXCEPTION: main
07-15 02:51:16.840: E/AndroidRuntime(876): Process: com.example.tryapp, PID: 876
07-15 02:51:16.840: E/AndroidRuntime(876): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.tryapp/com.example.tryapp.MainActivity}: android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar.
07-15 02:51:16.840: E/AndroidRuntime(876): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2197)
07-15 02:51:16.840: E/AndroidRuntime(876): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2258)
07-15 02:51:16.840: E/AndroidRuntime(876): at android.app.ActivityThread.access$800(ActivityThread.java:138)
07-15 02:51:16.840: E/AndroidRuntime(876): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209)
07-15 02:51:16.840: E/AndroidRuntime(876): at android.os.Handler.dispatchMessage(Handler.java:102)
07-15 02:51:16.840: E/AndroidRuntime(876): at android.os.Looper.loop(Looper.java:136)
07-15 02:51:16.840: E/AndroidRuntime(876): at android.app.ActivityThread.main(ActivityThread.java:5026)
07-15 02:51:16.840: E/AndroidRuntime(876): at java.lang.reflect.Method.invokeNative(Native Method)
07-15 02:51:16.840: E/AndroidRuntime(876): at java.lang.reflect.Method.invoke(Method.java:515)
07-15 02:51:16.840: E/AndroidRuntime(876): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
07-15 02:51:16.840: E/AndroidRuntime(876): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
07-15 02:51:16.840: E/AndroidRuntime(876): at dalvik.system.NativeStart.main(Native Method)
07-15 02:51:16.840: E/AndroidRuntime(876): Caused by: android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar.
07-15 02:51:16.840: E/AndroidRuntime(876): at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:275)
07-15 02:51:16.840: E/AndroidRuntime(876): at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2872)
07-15 02:51:16.840: E/AndroidRuntime(876): at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3129)
07-15 02:51:16.840: E/AndroidRuntime(876): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:303)
07-15 02:51:16.840: E/AndroidRuntime(876): at android.app.Activity.setContentView(Activity.java:1930)
07-15 02:51:16.840: E/AndroidRuntime(876): at android.support.v7.app.ActionBarActivity.superSetContentView(ActionBarActivity.java:217)
07-15 02:51:16.840: E/AndroidRuntime(876): at android.support.v7.app.ActionBarActivityDelegateICS.setContentView(ActionBarActivityDelegateICS.java:110)
07-15 02:51:16.840: E/AndroidRuntime(876): at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:77)
07-15 02:51:16.840: E/AndroidRuntime(876): at com.example.tryapp.MainActivity.onCreate(MainActivity.java:14)
07-15 02:51:16.840: E/AndroidRuntime(876): at android.app.Activity.performCreate(Activity.java:5242)
07-15 02:51:16.840: E/AndroidRuntime(876): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
07-15 02:51:16.840: E/AndroidRuntime(876): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2161)
07-15 02:51:16.840: E/AndroidRuntime(876): ... 11 more"