我想在我的项目中使用com.android.future.usb.UsbManager;
。这个课程附带google api。我创建了一个新的项目,从项目结构的设置(我使用Android工作室),我改变了编译SDK版本谷歌的API(API 19)和构建工具版本19.1.0使用Google API的正确版本版本
我的身材。 gradle文件如下,但我得到了一些错误。
我的问题是:如何才能找到使用Google API(API 19)或Google API(API 17)的正确组合?
哪个构建工具版本(我在UI中都尝试过)?
Error:(9) Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'."
Error:Execution failed for task ':app:processDebugResources'. com.android.ide.common.process.ProcessException: Failed to execute aapt
compileSdkVersion 'Google Inc.:Google APIs:19'
buildToolsVersion '19.1.0'
defaultConfig {
applicationId "com.example.cihan.myapplication"
minSdkVersion 10
targetSdkVersion 19
versionCode 5
versionName "5.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
编辑:我重新安装的Android Studio和选择最新的谷歌API的版本和构建版本(两个版本现在24)
你为什么不使用只是最新的一个? –
gui中的最大可用值是Google API(API 19),如果我同时选择最大可用值,则最大可用构建工具版本为24.0.3。 – Cozdemir