-
Notifications
You must be signed in to change notification settings - Fork 55
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
Comments
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. |
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. |
Hi @dendyaziz That means that your Geolocation Key is wrong. Please make sure that your Geolocation is configured exactly like this: Regarding the icon colours, PING uses the @color/colorPrimary to these icons.
Probably you have a conflicting style with PING. Please also double check whether you enabled the support vectors in your app's build.gradle. |
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 |
What error is it throwing? 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. |
@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 |
@vanyasem |
@rtchagas Yep |
Could you please send some logs when the "Couldn't find selected place..." is shown? |
@rtchagas I'm not sure where to get them, logcat doesn't log anything suspicious |
hm @rtchagas
|
logcat throws a selinux exception every time i press se;ect this location |
Probably not that... Let's go for trials and errors...
|
@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 |
Please try to open this URL: I just need to be sure that the issue is library related and not a configuration or Google Maps issue. |
The URL returns a JSON with New-York (written in Russian) |
So it's not an issue with my key for sure ;) |
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 No idea why they aren't the same...but hopefully this helps others that are banging their heads like I was. |
What should I do if I have this as a result of the link? |
You must enable Geocoding APIs in your project through this url: |
In the meantime you can take a look at Yandex Place Picker, which does basically the same for free utilising Yandex MapKit |
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: Also test this link with your 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. |
@vanyasem |
@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). |
Hi @rtchagas, 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:
With the solution for buttons I am quite OK but the solution for icons is not great because it forces me to check your 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? |
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. |
**Hi i have same issue ** java.lang.RuntimeException: Manifest merger failed with multiple errors, see logs |
Hi GitHub Community, good day. How Enabling nearby searches? in the manifest.xml, activity.kt|java, or where? and this:
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. |
Hi @eDR10x
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 |
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 |
Hi @eDR10x Your Maps API key looks good. So, probably you have a bad Android API key. Please double check whether your Android API key is secured with your app's SHA1. For more info take a look at here |
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. |
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? |
@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. |
See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
FAILURE: Build failed with an exception.
Execution failed for task ':app:processDebugManifest'.
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.
The text was updated successfully, but these errors were encountered: