Android-nRF-Toolbox project building error

Dear Nordic Team,

We are trying to build Android-nRF-Toolbox version 3.1.3 and Android BLE library 2.5.1 on Android Studio Dolphin | 2021.3.1 Patch 1.

After struggling and setting Android Gradle Plugin Version 7.3.1 and Gradle Version 7.5-rc-1, project sync gives following errors.

> Task :lib_ui:compileDebugKotlin FAILED
e: E:\Nordic_Codes\Android\Nordic-Toolbox\lib_ui\src\main\java\no\nordicsemi\android\ui\view\BatteryLevelView.kt: (36, 30): Unresolved reference: theme
e: E:\Nordic_Codes\Android\Nordic-Toolbox\lib_ui\src\main\java\no\nordicsemi\android\ui\view\BatteryLevelView.kt: (41, 5): Unresolved reference: ScreenSection
e: E:\Nordic_Codes\Android\Nordic-Toolbox\lib_ui\src\main\java\no\nordicsemi\android\ui\view\BatteryLevelView.kt: (42, 9): @Composable invocations can only happen from the context of a @Composable function
e: E:\Nordic_Codes\Android\Nordic-Toolbox\lib_ui\src\main\java\no\nordicsemi\android\ui\view\BatteryLevelView.kt: (43, 13): @Composable invocations can only happen from the context of a @Composable function

We also tried different versions of Android libraries, its platforms, Kotlin etc. but got more errors than above.

Please suggest how can we overcome this problem. 

Otherwise suggest us which last successful versions of Android-nRF-Toolbox and Android BLE library should be use with which version of Android Studio.

Regards,

Parents Reply
  • O.K. Hieu.

    We are developing Automotive product based on Nordic nRF52 controller and want to develop Android application using your Android source code. Project have big scope and its hardware board is in prototyping stage. Please resolve this query asap.

    If possible please provide us the verified versions of following items

    1. Android-nRF-Toolbox

    2. Android BLE library

    3. Android Common libraries (Not seeing anywhere)

    4. Android studio

    5. Gradle

    6. AGP

    7. Others

    Regards,

    AKB

Children
No Data
Related