2. 安裝Android Studio, JDK
3. 裝好後,把剛剛NuBrick抓的code, 解開APP的Source code
SW_NuMakerBrick_V1.2.zip\SW_NuMakerBrick_V1.2\NuMakerBrick_APP
Android studio去開啟Project, 選到\nubrickapp
4. 開起來之後,會有Error
解法參考 Stackflow
開啟nubrickapp\gradle\wrapper\gradle-wrapper.properties
修改
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip
修改nubrickapp\build.gradle
classpath 'com.android.tools.build:gradle:1.5.0'
Don't click Sync Now
From menu choose File -> Invalidate Caches/Restart...
Choose first option: Invalidate and Restart
Android Studio would restart. After this, it should work normally
5. 重開後,新的ErrorMENU > Tools > Android > SDK Manager
把Android 5.1 (Lolipop) 22 打勾, Apply, 接下來會安裝API Lv22的SDK
裝好後,MENU > Build > Clean Project
會有另外一個Error, 找不到Build Tool 22.0.1, 提示框有Install的按鈕, 按下去裝
裝好後,MENU > Build > Clean Project 這次會跑比較久
這樣應該就可以Build了
Build tool可以看
1. C:\Users\USERNAME\AppData\Local\Android\sdk\build-tools
沒有留言:
張貼留言