我想在我的項目中使用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