Just change the Build Variant from google to regular.
Thank you, I changed , still problem persist
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processRegularDebugGoogleServices'.
> File google-services.json is missing. The Google Services Plugin cannot function without it.
Searched Location:
C:\traccar-client-android-master\app\src\regular\debug\google-services.json
C:\traccar-client-android-master\app\src\debug\regular\google-services.json
C:\traccar-client-android-master\app\src\regular\google-services.json
C:\traccar-client-android-master\app\src\debug\google-services.json
C:\traccar-client-android-master\app\src\regularDebug\google-services.json
C:\traccar-client-android-master\app\google-services.json
* 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
BUILD FAILED in 8s
Did you change the Build Variant to regularDebug ?
I just check it works fine for me.
Yes, I did. Still have problems
Looks like build.gradle files not proper, it was working before, The studio upgraded automatically, then started issues
Well, don't upgrade gradle version or gradle plugin version. Clone repo again and start from scratch.
I did as you said , again facing the problem,
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processRegularDebugGoogleServices'.
> File google-services.json is missing. The Google Services Plugin cannot function without it.
Searched Location:
C:\traccar-client-android-master\app\src\regular\debug\google-services.json
C:\traccar-client-android-master\app\src\debug\regular\google-services.json
C:\traccar-client-android-master\app\src\regular\google-services.json
C:\traccar-client-android-master\app\src\debug\google-services.json
C:\traccar-client-android-master\app\src\regularDebug\google-services.json
C:\traccar-client-android-master\app\google-services.json
* 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
BUILD FAILED in 2s
You are still trying to compile wrong flavor. Please provide a screenshot of the flavor that you selected.
Now compiled well , when click on RUN button emulator open then app stops
Do you mean it crashes? You would need to check logs.
Solved, some directive in app file deprecated, I had to replace with compiler instructions, now works
Hi.
i have the same problem. please help me?
I would be happy to help. It was a year ago. I am realy not remember what I did. I guess i chage in compiler setting instruction.
Hi,
I downloaded client app and tried to compile, have error below: