2014-09-22 149 views

回答

3

克隆現有項目中的磨損模塊(或手動構建)作爲新項目。

添加您的settings.gradle新模塊。 你應該有這樣的事情:

include ':myApp', ':wear' 

在您的應用程序,在build.gradle你必須添加:

dependencies { 
    // your current dependencies 
    wearApp project(':wear') 
    // may be you have to use also gplay services lib. It depends by your app. 
    // compile 'com.google.android.gms:play-services-wearable:5.0.77' 
} 

注重包裝。 穿着和移動應用程序使用相同的包裝!

相關問題