简体   繁体   English

Android Studio确实检测到错误的SDK版本

[英]Android studio does detect false SDK version

If i want to start my application in Android Studio, the dialogue opens to choose a running device; 如果我想在Android Studio中启动应用程序,则会打开对话框以选择正在运行的设备。

But i get this error: 但是我得到这个错误:

在此处输入图片说明

在此处输入图片说明

But my device is running on Android 5.1.1 (Huawei Ascend P7). 但是我的设备运行在Android 5.1.1 (Huawei Ascend P7)上。

Where is my fault? 我的错在哪里

Thanks in advance. 提前致谢。

EDIT: Build.gradle: 编辑:Build.gradle:

compileSdkVersion 23
buildToolsVersion "23.0.0"
useLibrary 'org.apache.http.legacy'

defaultConfig {
    applicationId "de.sese7.zooapp"
    minSdkVersion 14
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}

This worked for me 这对我有用

  • Restart adb by issuing 'adb kill-server' followed by 'adb start-server' at a cmd prompt 通过在cmd提示符下发出“ adb kill-server”和“ adb start-server”来重新启动ADB
  • Disable and re-enable USB debugging on the phone 在手机上禁用并重新启用USB调试
  • Rebooting the phone if it still doesn't work. 如果仍然无法正常启动手机。
  • Resetting the PC-Keys 重置PC键

There are a few steps necessary: First you should Restart adb by typing the two console commands 'adb kill-server' and then 'adb start-server'. 需要执行一些步骤:首先,您应该通过键入两个控制台命令“ adb kill-server”和“ adb start-server”来重新启动adb。 Second turn on and off usb debugging on your phone Third reboot your phone And if it neither work reset your PC keys 第二次打开和关闭手机上的USB调试第三次重新启动手机,如果仍然无法工作,请重置PC密钥

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM