Hi, I have similar error on this thread:
Android-nRF-Toolbox build error(Unresolved reference: theme)
I cloned current latest releases of Android-nRF-Toolbox(3.1.3), Android ble library(2.5.1), and Android common library(1.0.27) source code from github to the same folder.
I am using Android Studio Dolphin | 2021.3.1 Patch 1
Build #AI-213.7172.25.2113.9123335, built on September 30, 2022
Runtime version: 11.0.13+0-b1751.21-8125866 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 3072M
Cores: 8
At start it shows error the newest gradle version is 7.3.1, so I modified build.gradle for it to 7.3.1 for all modules
Then I got build error for all files that uses theme and analytics.
I searched the errors and found only that solution.
change
import no.nordicsemi.android.theme.ScreenSection
to
import no.nordicsemi.android.material.you.ScreenSection
But I have to downgrade the Android common library to 1.0.10 in order to use that solution.
I also needed to do similar changes for analytics. (change to import no.nordicsemi.android.analytics. ...)
But still there is no successfull build.
Then I tried different release numbers combinations of nrftoolbox, ble-library and common-library. Unfortunately there are nearly infinetely many combinations.
At the end, I spent 2 days without success and now I feel exhausted for trial and error.
I stopped at this error. And I did not find anything relevant to this error on the internet.Android-nRF-Toolbox\app\build\tmp\kapt3\stubs\debug\no\nordicsemi\android\nrftoolbox\MainActivity.java:7: error: [Hilt] public final class MainActivity { ^ @AndroidEntryPoint base class must extend ComponentActivity, (support) Fragment, View, Service, or BroadcastReceiver. [Hilt] Processing did not complete. See error above for details.
What is the solution for the error?
And please give us compatible release numbers of ble library and common library to the latest NRFtoolbox release(3.1.3). If there isn't any, please update the Android-nrftoolbox that can be build without error, according to latest ble and common libraries.
Thanks in advance.