Hello everyone,
I have cloned the services repo on windows machine, and facing the below error while I try to run the application.
Can you guide me on how to fix it. Thank you so much.
Hi @Akanksha_Thaware! Are you trying to do development work or deploy the app? Note that services runs, in conjunction with tables and/or survey, on a tablet - not a windows machine. If you want to test from a computer, you need an android emulator. See Installing ODK-X Basic Tools — ODK-X Docs for setup instructions.
@Akanksha_Thaware Can you show a screenshot of the complete error message and also a screenshot of your project structure?
Did you setup the project correctly? ( Androidlibrary, Services, Tables, Survey ) are they inside the same folder?
This is the error -
Execution failed for task ‘:services_app:processPrimaryDebugResources’.
A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
Android resource linking failed
ERROR: C:\Users\ROG ZEPHYRUS\Desktop\odk-x\services\services_app\src\main\res\layout\fragment_choose_sign_in_type.xml:56: AAPT: error: resource style/ButtonStyleAnonymous (aka org.opendatakit.services:style/ButtonStyleAnonymous) not found.
- Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to Command-Line Interface Reference in the Gradle documentation.
BUILD FAILED in 1m 6s
50 actionable tasks: 50 executed
@Akanksha_Thaware Make sure you’re also pulling latest updates from the AndroidLibrary JDK-11 branch and then rebuild the project.
That should solve your issue