2014-07-04 2 views
-1

Работа в приложении для Android в первый раз. Он не запускается, и поскольку это мое первое приложение, я не понимаю ошибок. Вот вывод на консоль:Приложение для Android не запускается (с использованием Eclipse)

[2014-07-04 09:12:09 - LeapMotionApp] Starting activity com.example.leapmotionapp.MainActivity on device emulator-5554 
[2014-07-04 09:12:12 - LeapMotionApp] Installation failed due to invalid URI! 
[2014-07-04 09:12:12 - LeapMotionApp] Please check logcat output for more details. 
[2014-07-04 09:12:12 - LeapMotionApp] Launch canceled! 
[2014-07-04 09:12:12 - LeapMotionApp] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.leapmotionapp/.MainActivity } 

и вот выход LogCat:

07-04 13:12:12.930: E/AndroidRuntime(761): FATAL EXCEPTION: main 
07-04 13:12:12.930: E/AndroidRuntime(761): Process: com.example.leapmotionapp, PID: 761 
07-04 13:12:12.930: E/AndroidRuntime(761): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.leapmotionapp/com.example.leapmotionapp.MainActivity}: android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar. 
07-04 13:12:12.930: E/AndroidRuntime(761): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2197) 
07-04 13:12:12.930: E/AndroidRuntime(761): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2258) 
07-04 13:12:12.930: E/AndroidRuntime(761): at android.app.ActivityThread.access$800(ActivityThread.java:138) 
07-04 13:12:12.930: E/AndroidRuntime(761): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209) 
07-04 13:12:12.930: E/AndroidRuntime(761): at android.os.Handler.dispatchMessage(Handler.java:102) 
07-04 13:12:12.930: E/AndroidRuntime(761): at android.os.Looper.loop(Looper.java:136) 
07-04 13:12:12.930: E/AndroidRuntime(761): at android.app.ActivityThread.main(ActivityThread.java:5026) 
07-04 13:12:12.930: E/AndroidRuntime(761): at java.lang.reflect.Method.invokeNative(Native Method) 
07-04 13:12:12.930: E/AndroidRuntime(761): at java.lang.reflect.Method.invoke(Method.java:515) 
07-04 13:12:12.930: E/AndroidRuntime(761): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777) 
07-04 13:12:12.930: E/AndroidRuntime(761): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602) 
07-04 13:12:12.930: E/AndroidRuntime(761): at dalvik.system.NativeStart.main(Native Method) 
07-04 13:12:12.930: E/AndroidRuntime(761): Caused by: android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar. 
07-04 13:12:12.930: E/AndroidRuntime(761): at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:275) 
07-04 13:12:12.930: E/AndroidRuntime(761): at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2872) 
07-04 13:12:12.930: E/AndroidRuntime(761): at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3129) 
07-04 13:12:12.930: E/AndroidRuntime(761): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:303) 
07-04 13:12:12.930: E/AndroidRuntime(761): at android.app.Activity.setContentView(Activity.java:1930) 
07-04 13:12:12.930: E/AndroidRuntime(761): at com.example.leapmotionapp.MainActivity.onCreate(MainActivity.java:15) 
07-04 13:12:12.930: E/AndroidRuntime(761): at android.app.Activity.performCreate(Activity.java:5242) 
07-04 13:12:12.930: E/AndroidRuntime(761): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 
07-04 13:12:12.930: E/AndroidRuntime(761): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2161) 
07-04 13:12:12.930: E/AndroidRuntime(761): ... 11 more 

любая помощь, будут оценены. Here is the code for the .java and .xml files from a question I asked earlier

Цените всю помощь

EDIT: Вот манифест:

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.example.leapmotionapp" 
    android:versionCode="1" 
    android:versionName="1.0" > 

    <uses-sdk 
     android:minSdkVersion="8" 
     android:targetSdkVersion="21" /> 

    <application 
     android:allowBackup="true" 
     android:icon="@drawable/ic_launcher" 
     android:label="@string/app_name" 
     android:theme="@style/AppTheme" > 
     <activity 
      android:name=".MainActivity" 
      android:label="@string/app_name" > 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 

       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 
    </application> 

</manifest> 
+0

вы можете показать нам свои файл манифеста? –

+0

манифест включен в [этот вопрос, который я задал ранее] (http://stackoverflow.com/questions/24563783/android-app-wont-launch#comment38047110_24563783) – PenguinProgrammer

+0

добавил код манифеста и на этот вопрос – PenguinProgrammer

ответ

-1

Вашего случай, эта ошибка:

android.util.AndroidRuntimeException: Вы не можете комбинировать салфетки увольнения и панель действий.

Изменение целевой версии:

андроида: targetSdkVersion = "21"

TO:

андроида: targetSdkVersion = "19"

Смотри здесь

targetSdkVersion setting

+0

извините, уже исправлено, что – PenguinProgrammer

+0

..... там изменилось то, что в предыдущем вопросе, спасибо за указание, но это не решение к этой проблеме :( – PenguinProgrammer

+0

любые другие предложения – PenguinProgrammer

Смежные вопросы