i am trying to compile the android app with google release and i get errors like this
> Task :app:compileGoogleReleaseKotlin
e: C:\sers\Master\Desktop\app android\traccar-manager-android-master\app\src\google\java\org\traccar\manager\GoogleMainApplication.kt: (37, 41): Unresolved reference: MainFragment
e: C:\sers\Master\Desktop\app android\traccar-manager-android-master\app\src\google\java\org\traccar\managerGoogleMainApplication.kt: (41, 27): Unresolved reference: R
e: C:\sers\Master\Desktop\app android\traccar-manager-android-master\app\src\google\java\org\traccar\managerGoogleMainApplication.kt: (42, 27): Unresolved reference: R
e: C:\sers\Master\Desktop\app android\traccar-manager-android-master\app\src\google\java\org\traccar\managerGoogleMainApplication.kt: (60, 29): Unresolved reference: MainFragment
e: C:\sers\Master\Desktop\app android\traccar-manager-android-master\app\src\google\java\org\traccar\managerGoogleMainApplication.kt: (61, 25): Unresolved reference: MainFragment
e: C:\sers\Master\Desktop\app android\traccar-manager-android-master\app\src\google\java\org\traccar\managerManagerMessagingService.kt: (37, 35): Unresolved reference: MainActivity
e: C:\sers\Master\Desktop\app android\traccar-manager-android-master\app\src\google\java\org\traccar\managerManagerMessagingService.kt: (40, 66): Unresolved reference: R
e: C:\sers\Master\Desktop\app android\traccar-manager-android-master\app\src\google\java\org\traccar\manager\ManagerMessagingService.kt: (41, 27): Unresolved reference: R
e: C:\sers\Master\Desktop\app android\traccar-manager-android-master\app\src\google\java\org\traccar\manager\ManagerMessagingService.kt: (42, 40): Unresolved reference: R
> Tarea :app:compileGoogleReleaseKotlin FAILED
if i do the export with REGULARDEBUG or REGULARRELEASE it exports the file without problem!
my question is: can i upload regularelease to playstore?
thank you, the work you do for everyone is invaluable!
to enable push notifications follow these steps:
open traccar.xml and embed the following code.
<entry key='notifator.types'>web,mail,firebase</entry>
<entry key='notifator.firebase.serviceAccount'>
{
"type": "service_account",
"project_id": "HELLO",
"private_key_id": "HELLO",
"private_key":"-----BEGIN PRIVATE KEY-----HOLA==-----BEGIN PRIVATE KEY-----HOLA==-----END PRIVATE KEY-----",
"client_email": "firebase-HOLA-HOLA@HOLA-HOLA-gps.iam.gserviceaccount.com",
"client_id": "HELLO",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/firebase-HOLA-HOLA@HOLA-HOLA-gps.iam.gserviceaccount.com"
}
I save the file and restart the traccar service! I go to the server I create a notification for firebase and I do a test and in my application my mobile phone does not show anything.
remember that I built the RegularRelease apk.
I could not get a step by step on how to configure push notifications.
The regular build obviously won't support push notifications, which is a Google service.
i am trying to compile the android app with google release and i get errors like this
if i do the export with REGULARDEBUG or REGULARRELEASE it exports the file without problem!
my question is: can i upload regularelease to playstore?