Android Question How to use AdditionalJar in a service ?

fs007

Member
Adding the "#AdditionalJar:" tag to a service or modul code results in an error message in the IDE.
But "#AdditionalJar:" only in Main throws an error at runtime:

 

fs007

Member
..... the error has nothing to do with the place you put #AdditionalJar.
Really ???
Why does IDE show an error ("Attribute not supported:additonaljar") to this code:

Service module::
#Region  Service Attributes
    #StartAtBoot: False
    
#End Region

#AdditionalJar: google-auth-library-credentials-1.18.0

Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.

End Sub

Sub Service_Create

End Sub

Sub Service_Start (StartingIntent As Intent)
    Service.StopAutomaticForeground 'Call this when the background task completes (if there is one)
End Sub

Sub Service_Destroy

End Sub

Erel said:
you are trying to use a Jar not compatible with Android.
where to get a compatible version ?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…