-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin ignores custom file found in root directory #44
Comments
Hi @ClaudeHangui, can you try with the latest version of this library (2.0.0)? Also, just to confirm, are you able to get the plugin to work when it reads from |
Yes I am able to have it working from the |
Are you getting a compilation error? Or is the error related to the map not showing (i.e. the plugin is able to fetch the key, but the key does not have the correct APIs enabled)? Based on the message you pasted, it seems that it might be the latter (see Enabling APIs) |
The plugin isn't able to fetch the key. Like I said, I initially set up my key in the strings.xml file, read it in the AndroidManifest.xml and I had no issue in displaying my location on the map. I tried the plugin with a custom configuration/ file and I have the error above |
The error message that you shared in #44 (comment) does not match the error you are describing of the plugin not being able to fetch the key. You should see something like this error for
Or, the following error if the plugin is not able to fetch your key in the AndroidManifest.xml file:
Can you share more information from your logs? |
Here :
Again setting up my key in local.properties or strings..xml works absoluetely fine |
Yep, that error message indicates that API key restrictions are incorrectly applied and does not have anything to do with the plugin's functionality. Is it possible that you have 2 separate keys that might be interfering with each other (or different build variants with separate package names)? |
As a matter of fact we do have multiple build variants. But right now I am in |
@arriolac Any ideas on how I should go about in this case ? |
If you can share a demo project that reproduces this issue for me to look into further that would be helpful. Another thing you can test to verify that this issue is for sure with the plugin and not with a restricted API key, can you create a new unrestricted Google Maps API key and use that instead? |
I'll try that |
Any update on your issue? |
I created a custom file named service.properties at the root of my project and I stored my google api key in it as such:
key_name="value"
In my module's build.gradle file I have this configuration:
secrets { propertiesFileName 'service.properties' }
When I run the project I get the error message saying telling me to check if the api key exist. It does already exists as I originally set my key in the strings.xml file and I read directly from there, before attempting this plugin
I am using v1.3.0 of the plugin
The text was updated successfully, but these errors were encountered: