Android-nRF-Toolbox build error(Unresolved reference: theme)

Hi,

I downloaded Android-nRF-Toolbox and ble library source code from
https://github.com/NordicSemiconductor/Android-nRF-Toolbox
https://github.com/NordicSemiconductor/Android-BLE-Library

Try to build them by Android Studio on Windows 10,
(Android Studio Chipmunk | 2021.2.1 Patch 1
Build #AI-212.5712.43.2112.8609683, built on May 19, 2022)

At start it shows error the newest gradle version is 7.2.1,
so I modified build.gradle for it to 7.2.1:

classpath 'com.android.tools.build:gradle:7.2.1'

Then I got build error on BatteryLevelView.kt and no idea how to do,
seems something missing? not defined?

...\BatteryLevelView.kt: (36, 30): Unresolved reference: theme
...\BatteryLevelView.kt: (41, 5): Unresolved reference: ScreenSection
...\BatteryLevelView.kt: (42, 9): @Composable invocations can only happen from the context of a @Composable function
...\BatteryLevelView.kt: (43, 13): @Composable invocations can only happen from the context of a @Composable function

Can someone help me to compile the Android-nRF-Toolbox?

Thanks~

Parents
  • Hi

    Unfortunately the top of the branch is work in progress and can't be used by you at the moment. The reason is that in projects the developers internally are using other repo which are private. For development they're using local copy, not libraries pushed to the public repository. As a result on main branch is code which uses libraries version not available to you.

    They plan have to fix this, but the shortest solution will be for you to checkout latest version tag 3.1.3.

    Best regards,
    Kenneth

Reply
  • Hi

    Unfortunately the top of the branch is work in progress and can't be used by you at the moment. The reason is that in projects the developers internally are using other repo which are private. For development they're using local copy, not libraries pushed to the public repository. As a result on main branch is code which uses libraries version not available to you.

    They plan have to fix this, but the shortest solution will be for you to checkout latest version tag 3.1.3.

    Best regards,
    Kenneth

Children
No Data
Related