乳宁默认打招呼应用摇篮和API [英] runing default hello app Gradle and API

查看:124
本文介绍了乳宁默认打招呼应用摇篮和API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚下载的Andr​​oid工作室,遇到了一些麻烦。着运行默认的Hello World程序。
似乎与API的版本号和适当的链接?
我原本20版这是不是手机。我试图改变到版本19

Just downloaded Android studio and having some trouble. cant run the default hello world program. Seems to be related to API version numbers and proper linking? originally i had version 20 which is not for phones. i tried to change to ver 19

开始-computer-属性高级系统设置 - 环境变量如下:
JAVA_HOME C:Program Files文件/ javajdk1.8.0_20
(我也可能会改变一些意外:
          COMSPEC C:在Windows / SYSTEM32 / cmd32)

Start -computer- properties advanced system settings-environment variables reads: java_home C:program files/javajdk1.8.0_20 (also i may have changed something by accident: ComSpec c:windows/system32/cmd32)

从那里我下载在Android影城一些变薄:

from there i downloaded some thins from Android Studios:

       SDK manager"

排序API
我有所有的API是19
出于某种原因,玻璃发展preVIEW不安装。
我也有一些事情,从20 API
和USB驱动程序和库(第6版)
谷歌玩启示录19
谷歌的USB驱动转速10

sort by API i have all the API's that are 19 for some reason glass development preview does not install. I also have some things from API 20 and usb driver and repository (rev 6) google play rev 19 google usb driver rev 10

运行
当我点击运行...我选择的Nexus 7(唯一一个有)
手机屏幕打开,然后同时加载读取的android

RUN when i click run ... i choose nexus 7 (the only one there) the phone screen opens and then reads android while it loads

等待设备。登录....

Waiting for device. log ....

          "C:...\AppData\Local\Android\android-studio1\sdk\tools\emulator.exe" -avd nexus7             -netspeed full -netdelay none
       Device connected: emulator-5554
       Device nexus7 [emulator-5554] is online, waiting for processes to start up..
       Device nexus7 [emulator-5554] is online, waiting for processes to start up..
       Device nexus7 [emulator-5554] is online, waiting for processes to start up..
       Device nexus7 [emulator-5554] is online, waiting for processes to start up..
       Device nexus7 [emulator-5554] is online, waiting for processes to start up..

___________手机开始随着时间的推移在右上角没有文字工作__​​______

         Device nexus7 [emulator-5554] is online, waiting for processes to start up..
         Device nexus7 [emulator-5554] is online, waiting for processes to start up..
         Device nexus7 [emulator-5554] is online, waiting for processes to start up..
         Device nexus7 [emulator-5554] is online, waiting for processes to start up..

屏幕变暗,然后亮起时,我滑动
我重新运行它,并选择开放的Nexus 7

screen dims and then lights up when i "slide " i rerun it and choose open nexus 7

设备nexus7

e"log cat log reads....
      09-15 22:56:52.200      777-777/com.example.******.myapplication D/AndroidRuntime﹕            Shutting down VM
      09-15 22:56:52.200      777-777/com.example.******.myapplication W/dalvikvm﹕ threadid=1:    thread exiting with uncaught exception (group=0xb3a81d70)
        09-15 22:56:52.230      777-777/com.example.******.myapplication E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.example.******.myapplication, PID: 777
java.lang.RuntimeException: Unable to start activity                                         ComponentInfo{com.example.******.myapplication/com.example.******.myapplication.MyActivity}: android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar.
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2197)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2258)
        at android.app.ActivityThread.access$800(ActivityThread.java:138)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:136)
        at android.app.ActivityThread.main(ActivityThread.java:5026)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:515)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
        at dalvik.system.NativeStart.main(Native Method)
 Caused by: android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar.
        at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:275)
        at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2872)
        at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3129)
        at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:303)
        at android.app.Activity.setContentView(Activity.java:1930)
        at com.example.******.myapplication.MyActivity.onCreate(MyActivity.java:14)
        at android.app.Activity.performCreate(Activity.java:5242)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2161)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2258)
        at android.app.ActivityThread.access$800(ActivityThread.java:138)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:136)
        at android.app.ActivityThread.main(ActivityThread.java:5026)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:515)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
        at dalvik.system.NativeStart.main(Native Method)

电子

对不起即时通讯完全新的这一切,而不是一定要发布的内容。我没有触及任何$ C $的c那么它是所有默认。

Sorry im totally new to all this and not sure what to post. I did not touch any of the code it is all the default.

推荐答案

这看起来像是个错误已知的问题:你不能将刷卡解雇和操作栏。

This seems like known issue for the error "You cannot combine swipe dismissal and the action bar."

  • targetSdkVersion setting
  • android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar

它讲述这样的:

不要使用20和平台4.4W的API级别,作为Android虚拟设备。随着19级和Platform 4.2.2 ADV一切集运行,因为它应该。

Do not use API Level of 20 and Platform 4.4W, as Android Virtual Device. With Level 19 and Platform 4.2.2 set on ADV everything runs as it should.

要更改目标AVD

打开AVD管理
工具 - > Android-> AVD管理器。

Open AVD Manager Tools->Android->AVD Manager.

这篇关于乳宁默认打招呼应用摇篮和API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆