開発者向けのオプションが有効になっています。ドライバが更新されています(OS win10と書かれています)。私のマニフェスト:Androidスタジオでデバイスが認識されません - 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
}
マニフェスト両方とドキュメントからコピーしたコードをビルドします。しかしそれは失敗する。それは言う:expectin '}'が見つかりました 私はドキュメントが言うすべてを行ったので、これは意味するために、このsuposedが何であるかわかりません。私はここですべての答えをserachedしたが、どれideias リンク:?あなたのbuild.gradleを台無しにしているhttps://developer.android.com/studio/run/device.html
は 'build.gradle'ファイル全体ですか?それが問題であれば、それはあなたの問題です – Blundell
いいえ、もちろん、それはドキュメントの行だけです。投稿を編集します – glassraven
あなたはまた、 – Blundell