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

Manifest and API keys errors #10

Closed
dendyaziz opened this issue May 6, 2019 · 37 comments
Closed

Manifest and API keys errors #10

dendyaziz opened this issue May 6, 2019 · 37 comments
Assignees
Labels
environment/configuration Issue is related to user's working environment or project good first issue Good for newcomers

Comments

@dendyaziz
Copy link

Task :app:processDebugManifest FAILED
X:\Android\beebagi\app\src\main\AndroidManifest.xml:22:18-91 Error:
Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
is also present at [androidx.core:core:1.1.0-alpha05] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:6:5-44:19 to override.

See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processDebugManifest'.

Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
is also present at [androidx.core:core:1.1.0-alpha05] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:6:5-44:19 to override.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 3s
6 actionable tasks: 1 executed, 5 up-to-date
ERROR: Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
is also present at [androidx.core:core:1.1.0-alpha05] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:6:5-44:19 to override.

@dendyaziz dendyaziz changed the title Manifest error while adding dependencies on gradle app Manifest error when sync gradle after adding dependencies on gradle app May 6, 2019
@rtchagas
Copy link
Owner

rtchagas commented May 6, 2019

Hi @dendyaziz

Your project is not using AndroidX and, therefore, some dependencies are clashing.

Please migrate your project to AndroidX in order to use PING and many new Android libraries and components.

This change to AndroidX will become inevitable sooner or later.

@rtchagas rtchagas self-assigned this May 6, 2019
@rtchagas rtchagas added the environment/configuration Issue is related to user's working environment or project label May 6, 2019
@dendyaziz
Copy link
Author

dendyaziz commented May 6, 2019

Ok, I already migrated my project to androidx.
My next question, where I can get android api key?
I've got geolocation api key but can't found android api key on google console.

builder.setAndroidApiKey("YOUR_ANDROID_API_KEY")
.setGeolocationApiKey("AIzaSy~~~~~~~~~~~~~~~~~M880A");

It shows "Couldn't load nearby places", but sometimes nearby places are loaded
350822

@rtchagas
Copy link
Owner

rtchagas commented May 6, 2019

You can create and Android Key the same way you created a Geolocation Key.

But in the key properties, just set it as an Android Restricted Key.
https://developers.google.com/places/android-sdk/signup#restrict-key

@dendyaziz
Copy link
Author

Ok, it's working but it shows "couldn't find the selected place" when I select my current location using red pointer. all icons color and confirmation button turn into white too

350822
350826

@rtchagas
Copy link
Owner

rtchagas commented May 8, 2019

Hi @dendyaziz

That means that your Geolocation Key is wrong.

Please make sure that your Geolocation is configured exactly like this:
image

Regarding the icon colours, PING uses the @color/colorPrimary to these icons.

android:tint="@color/colorPrimary"

Probably you have a conflicting style with PING.

Please also double check whether you enabled the support vectors in your app's build.gradle.
vectorDrawables.useSupportLibrary = true

@vanyasem
Copy link

I have a 100% correct API key configured EXACTLY like this, and it even gets requests - as the counter in the API panel increases, but the library keeps throwing an error

@rtchagas
Copy link
Owner

rtchagas commented May 13, 2019

@vanyasem

What error is it throwing?
I have the demo and a different application using the library and everything is fine.

If you are getting errors while opening the picker before showing the list of places, you have a problem with your Android key.

If your get an error message while clicking on the "choose this place" button you have a problem with you GeoLocation key.

Just to be clear, the Android and Geolocation keys MUST be different.
The Android key must be secured with your apps's SHA1s as well.

@vanyasem
Copy link

@rtchagas my keys are different, and I have configured the Geolocation key exactly the same way as shown on your screenshot. I can see requests being made in the console, but the picker throws a "Couldn't find selected place..." error

@rtchagas rtchagas changed the title Manifest error when sync gradle after adding dependencies on gradle app Manifest and API keys errors May 13, 2019
@rtchagas
Copy link
Owner

@vanyasem
So, the error happens when you click on the "Select this location" button?

@vanyasem
Copy link

@rtchagas Yep

@rtchagas
Copy link
Owner

Could you please send some logs when the "Couldn't find selected place..." is shown?

@vanyasem
Copy link

@rtchagas I'm not sure where to get them, logcat doesn't log anything suspicious

@vanyasem
Copy link

hm @rtchagas

05-13 17:32:06.106 2061-2061/? W/Binder_B: type=1400 audit(0.0:635): avc: denied { ioctl } for path="socket:[251302]" dev="sockfs" ino=251302 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
05-13 17:32:06.106 2061-2061/? W/Binder_B: type=1400 audit(0.0:636): avc: denied { ioctl } for path="socket:[251302]" dev="sockfs" ino=251302 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0

@vanyasem
Copy link

logcat throws a selinux exception every time i press se;ect this location

@rtchagas
Copy link
Owner

Probably not that...

Let's go for trials and errors...

  • Is your Geolocation API (not the key) enabled in your Google APIs console?
  • Remove any restriction in your Geolocation key and try again.

@vanyasem
Copy link

@rtchagas yep, it's enabled and it even gets requests as I'm mentioning for the third time. I tried removing restrictions, that made no difference

@rtchagas
Copy link
Owner

Please try to open this URL:
https://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&key=[YOUR GEO KEY]

I just need to be sure that the issue is library related and not a configuration or Google Maps issue.

@vanyasem
Copy link

The URL returns a JSON with New-York (written in Russian)

@vanyasem
Copy link

So it's not an issue with my key for sure ;)

@percula
Copy link
Contributor

percula commented Jun 24, 2019

I had the same issue. Turns out I got an API key from the wrong google url:

Use this one: https://console.developers.google.com/apis
NOT this one: https://console.cloud.google.com/apis

No idea why they aren't the same...but hopefully this helps others that are banging their heads like I was.

@Moh09
Copy link

Moh09 commented Jun 25, 2019

Please try to open this URL:
https://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&key=[YOUR GEO KEY]

I just need to be sure that the issue is library related and not a configuration or Google Maps issue.

What should I do if I have this as a result of the link?
"error_message" : "This API project is not authorized to use this API.",
"results" : [],
"status" : "REQUEST_DENIED"

@rtchagas
Copy link
Owner

@Moh09

You must enable Geocoding APIs in your project through this url:
https://console.cloud.google.com/google/maps-apis/api-list

@Moh09
Copy link

Moh09 commented Jun 26, 2019

Screenshot_2019-06-26-12-38-33
Thanks I have done it, it works now.
I still have the same display problem. (Maps, Geoloc, Places API are enabled. Maps works fine, Places and Geocoding have a rate of 100% error and Geoloc is never searched according to the dashboard of my console GCP). I have tried multiple keys changes to be sure that I didn't invert keys, I checked all keys according to the screen up here (8 may) whithout any changes.

@vanyasem
Copy link

In the meantime you can take a look at Yandex Place Picker, which does basically the same for free utilising Yandex MapKit

@rtchagas
Copy link
Owner

Hi @Moh09

Please double check your Android Key. It must be secured for Android Apps only and you must add the SHA1s from your app to it (including debug).

Regarding the Geolocation key, make sure that it is exactly this:
#10 (comment)

Also test this link with your key:
https://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&key=YOUR_GEOCODING_KEY

If you still have problems, try to use an UNRESTRICTED key just for testing. This key should have no restrictions in both Applications and APIs. If PING works, the problem is with your keys. If it does not, we should investigate further.

@rtchagas
Copy link
Owner

rtchagas commented Jun 27, 2019

In the meantime you can take a look at Yandex Place Picker, which does basically the same for free utilising Yandex MapKit

@vanyasem
Some credits for being based on PING would be nice :)

@vanyasem
Copy link

vanyasem commented Jun 28, 2019

@rtchagas sure. PING is already linked in the description, but I will make it more clear that this library is partially based on PING (it only uses some of the UI components).

@NovakHonza
Copy link

Hi @rtchagas,
thank you for your great work.

I have similar problems as @dendyaziz with white icon color and white text color in buttons in place confirmation fragment.

I understand that it is a problem with conflicting @color/colorPrimary in my app. I have "temporarily" solved these problems in this way:

  • Button's text color with copy of PingThemeBase definition in my styles.xml and overwritten colorPrimary item.
  • To solve icon's color I had to make copy of youritem_place.xml to my res/layout directory and change tint color to requested value.

With the solution for buttons I am quite OK but the solution for icons is not great because it forces me to check your item_place.xml after every upgrade for some potential incompatible changes.

Am I missing some better solution?

And one last question on geocoding api key - if I understand it properly, it has to be absolutely unrestricted with enabled geocoding api?

@rtchagas rtchagas pinned this issue Jul 17, 2019
@rtchagas
Copy link
Owner

Hi @NovakHonza

Sorry, I missed your comment :(

Please check this issue for the icon and label colors: #30

Regarding the Geolocation API key, it was moved to the Maps API key.
It must be like this

@devpranav2104
Copy link

**Hi i have same issue **

java.lang.RuntimeException: Manifest merger failed with multiple errors, see logs
at com.android.build.gradle.internal.tasks.manifest.ManifestHelperKt.mergeManifestsForApplication(ManifestHelper.kt:181)
at com.android.build.gradle.tasks.ProcessApplicationManifest.doFullTaskAction(ProcessApplicationManifest.java:218)
at com.android.build.gradle.tasks.ProcessApplicationManifest.doIncrementalTaskAction(ProcessApplicationManifest.java:324)
at com.android.build.gradle.internal.tasks.IncrementalTask.handleIncrementalInputs(IncrementalTask.kt:111)
at com.android.build.gradle.internal.tasks.IncrementalTask.access$handleIncrementalInputs(IncrementalTask.kt:64)
at com.android.build.gradle.internal.tasks.IncrementalTask$taskAction$$inlined$recordTaskAction$1.invoke(AndroidVariantTask.kt:51)
at com.android.build.gradle.internal.tasks.IncrementalTask$taskAction$$inlined$recordTaskAction$1.invoke(AndroidVariantTask.kt:31)
at com.android.build.gradle.internal.tasks.Blocks.recordSpan(Blocks.java:91)
at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction$gradle(IncrementalTask.kt:134)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:103)
at org.gradle.api.internal.project.taskfactory.IncrementalTaskInputsTaskAction.doExecute(IncrementalTaskInputsTaskAction.java:46)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:41)
at org.gradle.api.internal.project.taskfactory.AbstractIncrementalTaskAction.execute(AbstractIncrementalTaskAction.java:25)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$5.run(ExecuteActionsTaskExecuter.java:404)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:393)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:376)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$200(ExecuteActionsTaskExecuter.java:80)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:213)
at org.gradle.internal.execution.steps.ExecuteStep.lambda$execute$0(ExecuteStep.java:32)
at java.util.Optional.map(Optional.java:215)
at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:32)
at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:26)
at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:58)
at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:35)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:48)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:33)
at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:39)
at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:73)
at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:54)
at org.gradle.internal.execution.steps.CatchExceptionStep.execute(CatchExceptionStep.java:35)
at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:51)
at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:45)
at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:31)
at org.gradle.internal.execution.steps.CacheStep.executeWithoutCache(CacheStep.java:201)
at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:70)
at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:45)
at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:49)
at org.gradle.internal.execution.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:43)
at org.gradle.internal.execution.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:32)
at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:38)
at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:24)
at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:96)
at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:89)
at java.util.Optional.map(Optional.java:215)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:54)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:38)
at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:77)
at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:37)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:36)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:26)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:90)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:48)
at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:33)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:120)
at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionStateTaskExecuter.execute(ResolveBeforeExecutionStateTaskExecuter.java:75)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:108)
at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionOutputsTaskExecuter.execute(ResolveBeforeExecutionOutputsTaskExecuter.java:67)
at org.gradle.api.internal.tasks.execution.ResolveAfterPreviousExecutionStateTaskExecuter.execute(ResolveAfterPreviousExecutionStateTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:94)
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:95)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:73)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:49)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:49)
at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:43)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:355)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:134)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:129)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:202)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:193)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
at java.lang.Thread.run(Thread.java:748)

@eDR10x
Copy link

eDR10x commented Dec 12, 2019

Hi GitHub Community, good day. How Enabling nearby searches?
where put this code?:
<bool name="enable_nearby_search">true</bool>

in the manifest.xml, activity.kt|java, or where? and this:

<bool name="show_confirmation_photo">true</bool>

<bool name="show_confirmation_map">true</bool>

<bool name="auto_center_on_marker_click">false</bool>

Because when I make click in the buttom, don't show the address name. Show some like that: 3° 45' 37" S, 73° 15' 7" E. I need get the address name. Here i add the screenshot of real device.

Best Regards.
Screenshot_20191211-174749_Ping Sample

@rtchagas
Copy link
Owner

rtchagas commented Dec 12, 2019

Hi @eDR10x

<bool name="enable_nearby_search">true</bool>

All those booleans are normal resources that you can add to your module res/values folder.

I recommend to create a "config.xml" file and add them there.

Regarding the place name, your Maps API key is wrong. That's why you got only the coordinates.

Please take a look at https://github.com/rtchagas/pingplacepicker/blob/master/README.md#api-keys to know how to configure your Maps API key.

It must look like this https://raw.githubusercontent.com/rtchagas/pingplacepicker/master/images/maps_api_key.png

@eDR10x
Copy link

eDR10x commented Dec 13, 2019

Hi @rtchagas thanks for your time and answer. I tryed it with your steps. But same. It show only coordinates. Here where i put the code <bool> and how i edited my API Key. Which could be the problem or the solution?
config_enable_nearby_search
apis_choose

@rtchagas
Copy link
Owner

Hi @eDR10x

Your Maps API key looks good.

So, probably you have a bad Android API key.
Google's Places API uses the Android API key to fetch places info as well.

Please double check whether your Android API key is secured with your app's SHA1.
The SHA1 should be added for both debug and release versions.

For more info take a look at here

@eDR10x
Copy link

eDR10x commented Dec 16, 2019

Hi @rtchagas good day. I had configured the "Android key" with sha-1 and package name. With the steps of the link. But is the same, show only coordinates. Here screenshot about the config. Or I must to activate the billing option in the console for this work, like that? Thank for your support. Best regards.
activate or not_billing

API_Key_status
Android API Key_good
activate or not_billing

@GjoAbrahamN
Copy link

https://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&key=[YOUR GEO KEY]

when try to use my Geolocation key i got the error "You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started" like this. what to do? do i need to enable this one?

@hemabhagnani
Copy link

@rtchagas I have followed almost every step, still, my map is not able to load nearby places, and also when I search for a location nothing is happening.
Please help !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
environment/configuration Issue is related to user's working environment or project good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

10 participants