В Chromium Portable отсутствует Google API-ключ
Я использую Портативный Хром на Windows, в среде, которая не сохраняет вещи после перезагрузки. При каждом запуске программы он жалуется на отсутствие API-ключа (см. скриншот на немецком языке). Ссылка узнать больше приводит к хромовые вики-страницы где первое требование для получения такого ключа говорит Make sure you are a member of chromium-dev@chromium.org какие мне подсказывает, что это не то, что я хочу, как я хочу использовать этого браузера. Я прошел через пару релизов этого портативный пакет, и он там довольно долгое время без меня настройки ничего. Это мейнтейнерам забыл выключить? Как я могу избавиться от него?
3 ответов
из портативной справки Chromium.html:
Chromium Portable имеет несколько настроек, которые влияют на поведение пусковой установки и браузера. Они могут быть установлены путем создания файла с именем ChromiumPortable.ini рядом с ChromiumPortable.исполняемый.
ChromiumPortable.ini-файл, состоящий из строк в формате ключ=значение. Действительные ключи перечислены ниже.
ключи доступа к API Google. Подробнее на сайте разработки Chromium. Обратите внимание, что разделители (::) окружены одним пробелом с каждой стороны.
Удалить баннер об отсутствующих ключах API Google
Недавно я установил Chromium как альтернативу Chrome без Google.
Теперь каждый раз, когда я запускаю Chromium, он показывает мне желтый баннер, указывающий, что мне нужно установить некоторые ключи Google API. Я понимаю, что не смогу использовать какие-либо функции Google без этих ключей, но, поскольку мне нужен опыт без Google, я совсем не против.
Итак, мой вопрос, есть ли способ, которым я могу удалить этот раздражающий баннер?
IMHOlogy
The Chromium Projects на своей странице Download Chromium дает инструкцию с двумя вариантами как получить сборку свежего снепшота браузера, если вам лень собирать его самому. НО вся проблема в том, что раньше разработчики делали оф.сборку браузера с включенными ключами API Google, а сейчас нет! По неизвестным причинам (правду не говорят), может сразу на Google Chrome хотят всех подсадить? Политика нам не интересна, но при этом пользователи сталкиваются с проблемой Issue 328089
Missing api_key/current key with Google Services 3.0.0
Since I upgraded the project with the latest version of google services and libraries (9.0.0), I have this strange issue :
However, it works well with the play service libraries in 8.4.0 and google-services 2.1.0
Do you have any idea of the solution ?
17 Answers 17
Trending sort
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
Switch to Trending sort
Newly config file with «api_key»: [ < "current_key": XXX >] in client section
Update: or manually enabled service in developer console and generate key.
Adding empty current key value in google-services.json file solved this problem for me
Yes, as for the first time using with Firebase, i face like that.Click on your app menu and click «Manage».
you can download google-services.json again.
For everyone that have this issue, for now, you’ll need to add any service to your app at https://developers.google.com/cloud-messaging/android/client#get-config
In my case I have added admob (already have analytics and gcm) and then the file was generated with api_key.
I think’s it’s a bug and will be soon fixed, until that, do it.
Although Jozka Jozin’s accepted answer and its comments, Cloud Messaging is neither related nor required.
Nevertheless, re-generating google-services.json is the key to solution (so I voted him). Below is what I did:
As you know you can generate the config file for Analytics from the Google Developers Guide.
1: Choose your app.
2: Close the popup! It hides.
3: THE OPTION OF ADMOB!
4: Of course, select and enable it!
5: Now we can rightly generate configuration files!
6: We made it! This time, the configuration file should include the api_key appropriately.
Conclusion: The UI of the interactive generation tool is a bit confusing.
You can download the google-services.json file again.
Steps to download:
1). Click on the top menu in your app in the Firebase Console.
2). Click on manage.
3). You will find Download the latest config file option, download and replace the google-services.json file in your application.
First in your JSON file
Then the gradle build will be successful but when you run your application you may get errors like the following..
To fix this issue you can add the following to your app.gradle file.. It worked for me.
Edit: It showed me some error later while building the apk file. So I had to download the json file again. After 2 trial I got the json file with a valid api key.
If you are not using Firebase, the correct link to generate the google-services.json config file is actually found here.
regenerate google-services.json at https://developers.google.com/cloud-messaging/android/client#get-config,one important thing is that you must enable Cloud Messaging in «Choose services» step ,open the new google-services.json file you will see words like
without this words or without value of current_key is not the right file
I was able to solve this problem with these steps that are not answered here. This answer is NOT enabling Cloud Messaging, it is only retrieving its server key.
So first, go to Firebase Console, and then go to Project Settings, and then click on the tab «Cloud Messaging». Look where it says «server key» and if there is no long key displaying (not the «Sender ID» number) click «Regenerate Key» and a long key should now show. Copy that key and place it in your google-services.json file at: «api_key»: [ <"current_key" : "key goes here">] .
This method helped me while none of the others were working, so hopefully this helps someone.