【问题标题】:Android Studio gradle building failed (Failed to find target)Android Studio gradle 构建失败(找不到目标)
【发布时间】:2017-03-27 08:55:24
【问题描述】:

我从 MYO sdk 导入了一个示例项目,但出现此错误:

错误:找不到目标 Google Inc.:Glass Development Kit Preview:19 : /Users/mytbrgr/Library/Android/sdk 打开 Android SDK 管理器

我目前在 Mac OS El Capitan 上运行最新版本的 Android Studio,这是我的 build.gradle:

    apply plugin: 'com.android.application'



dependencies {
    repositories {
        maven {
            //  this must point to the myorepository distributed with the Myo SDK
            url 'Users/mytbrgr/Downloads/myo-android-sdk-0.10.0/myorepository'
        }
    }
    compile('com.thalmic:myosdk:0.10.+@aar')
}
buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.0'
    }
}


android {
    compileSdkVersion 25
    buildToolsVersion '25.0.2'
    defaultConfig {
        minSdkVersion 18
        targetSdkVersion 18
        versionCode 1
        versionName "1.0"
        ndk {
            abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
        }
    }
    productFlavors {
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

我还安装了管理器中的所有相关 SDK(所有 Android 4.4、Android 4.3(包括 GDK 预览版))。 非常感谢您的帮助

【问题讨论】:

    标签: android gradle sdk gdk


    【解决方案1】:

    我猜你没有为 API 19 安装“Glass Development Kit Preview”。你可以通过 android SDK Manager 下载它:

    【讨论】:

      猜你喜欢
      • 2018-11-06
      • 2020-10-16
      • 1970-01-01
      • 2013-06-13
      • 2015-02-06
      • 1970-01-01
      • 2019-07-02
      • 2016-07-11
      • 2018-12-25
      相关资源
      最近更新 更多