2017-04-19 26 views
1

我想在Android Wear中創建一個曲面佈局。這是tutorial在Android Wear中找不到CurvedChildLayoutManager com.google.android.support:wearable:2.0.0

在這個網站上,谷歌讓我創建一個類MyLauncherChildLayoutManager extends CurvedChildLayoutManager,但我在我的Android工作室找不到CurvedChildLayoutManager

我找到了帶有android.support.wearable.view的API,並且此CurvedChildLayoutManager類包含在列表中。 這是API網站:CurvedChildLayoutManager

這是我的Gradle模塊的依賴

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    compile 'com.google.android.support:wearable:+' 
    compile 'com.google.android.gms:play-services-wearable:+' 
    //this provided is auto create when I create my android wear project, I try to annotation it,but also can't find 
    provided 'com.google.android.wearable:wearable:+' 
} 

但在我的Android工作室外部庫目錄 - >可佩戴2.0.0,我找不到CurvedChildLayoutManager類。我爲什麼找不到?這個可穿戴的圖書館版本是最新版本。 請幫助我,謝謝。

回答

0

在SDK管理器中,確保您擁有最新版本的Android支持庫和Android支持庫。然後使用版本2.0.2:(com.google.android.support:wearable:2.0.2),它應該在那裏:)