Android Studio无法识别我的设备 - LG Spirit 4G
我有开发人员选项启用,驱动程序更新(称为操作系统win10),我按照文档的说明。我的清单:Android Studio无法识别我的设备 - LG Spirit 4G
<application
android:debuggable="true" //this line says it shouldnt be harcoded?
android:allowBackup="true"
android:icon="@drawable/ic_piano"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
而构建graddle文件:
android {
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
android {
buildTypes {
debug {
debuggable true
}
两个清单,并构建代码的文档复制。但它无法build.graddle。它说︰expectin'}'发现“ 我不知道这是什么意思,因为我已经做了所有的文件说。我已经在这里所有的答案,所以没有任何工作......任何ideias 链接:https://developer.android.com/studio/run/device.html
你搞砸了你的build.gradle,它应该是这样的:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
请注意,这是你的*的build.gradle,它会坐下在你的项目的根目录中,应该有另一个 build.gradle在一个可能被称为的文件夹内这是你添加和修改android{}
gradle clojure的文件
好吧,渐进式运行,但当我按”播放“我唯一看到的东西是模拟器...在您的设备上没有任何实际设备 – glassraven
,是否启用了USB调试?https://www.google.co.uk/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q = android%20enable%20usb%20debugging – Blundell
谢谢blundell,它工作:) – glassraven
是整个'build.gradle'文件吗?如果是,那么这就是你的问题 – Blundell
不,当然不是,它只是文档中的一行,我将编辑帖子 – glassraven
你还应该链接哪些文档是指 – Blundell