How can I get the application id from the application using my library using gradle?
Or any way to put it in an XML file.
You want to get your app id defined in gradle, then this
BuildConfig.APPLICATION_ID
or you can get it
Context.getPackageName()