Skip to content
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

if defline key in local.properties,the key will error #766

Closed
perseusyang opened this issue Nov 26, 2021 · 2 comments
Closed

if defline key in local.properties,the key will error #766

perseusyang opened this issue Nov 26, 2021 · 2 comments
Assignees
Labels
type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@perseusyang
Copy link

perseusyang commented Nov 26, 2021

Thanks for stopping by to let us know something could be better!


PLEASE READ

If you have a support contract with Google, please create an issue in the support console. This will ensure a timely response.

Discover additional support services for the Google Maps Platform, including developer communities, technical guidance, and expert support at the Google Maps Platform support resources page.

If your bug or feature request is not related to this particular library, please visit the Google Maps Platform issue trackers.

Check for answers on StackOverflow with the google-maps tag.


Please be sure to include as much information as possible:

Environment details

  1. Specify the API at the beginning of the title (for example, "Places: ...")
  2. OS type and version
  3. Library version and other environment information

Steps to reproduce

Android Studio Arctic Fox | 2020.3.1 Patch 3
Build #AI-203.7717.56.2031.7784292, built on October 1, 2021
Runtime version: 11.0.10+0-b96-7249189 amd64
VM: OpenJDK 64-Bit Server VM by Oracle Corporation
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2560M
Cores: 8
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: Batch Scripts Support, CMD Support, DBN, com.github.setial, com.thoughtworks.gauge, org.jetbrains.kotlin, com.squareup.sqldelight, org.intellij.plugins.markdown
定义

Code example

local.properties

MAPS_API_KEY=xxxxxxxxxx

manifest.xml

android:value="${MAPS_API_KEY}" 

example

Stack trace

when i decode the apk i find the value is

<meta-data
           android:name="com.google.android.geo.API_KEY"
           android:value=""XXXXXXXXXXXX"" />

example

when i change the manifest

 <meta-data
            android:name="com.google.android.geo.API_KEY"
            android:value="XXXXXXXXXXXX" />

the pro is right
Following these steps will guarantee the quickest resolution possible.

Thanks!

@perseusyang perseusyang added triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Nov 26, 2021
@arriolac
Copy link
Contributor

arriolac commented Dec 2, 2021

Can you elaborate on the issue you are seeing? Is the plugin not passing the key correctly?

@arriolac arriolac removed the triage me I really want to be triaged. label Mar 23, 2022
@arriolac
Copy link
Contributor

Closing this as I have not heard back. Please reopen if this is still an issue to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants