Google Glass: GDK with Android Studio

后端 未结 4 1078
青春惊慌失措
青春惊慌失措 2020-12-25 15:13

I’m trying to use the new Google Glass Development kit with Android Studio. Unfortunately I\'m not having much success.

I get the error: \"Gradle: package com.google

4条回答
  •  暖寄归人
    2020-12-25 15:44

    Change the compileSdkVersion in your build.gradle file to refer directly to the GDK add-on:

    android {
        compileSdkVersion "Google Inc.:Glass Development Kit Preview:19"
        buildToolsVersion "19.0.2"
    
        // other stuff...
    }
    

    (The buildToolsVersion can be newer than 19.0.2 if you have a higher version of the SDK installed, as long as it's at least 19.0.2.)

提交回复
热议问题