Use new firebase sdk in android eclipse project

邮差的信 提交于 2019-11-30 02:04:55
Francisco Durdin Garcia

Take a look at this Github repository, I was using it as example to use Firebase with Eclipse (but finally I moved my project to Android Studio with Gradle because it was really awful).

README Project: https://github.com/dandar3/android-google-firebase-README

Actual Project: https://github.com/dandar3/android-google-firebase-common

usajnf

I agree with ErstwhileIII . We will have to migrate soon. In the meantime, try this: https://stackoverflow.com/a/37891421/6079935

Have a look at this repository:
https://github.com/dandar3/android-google-firebase-README

There is a video at the end showing how to easily download the entire set of libraries (requires Subversive plugin, see the video above it).

UPDATE:

Read all you need here:
http://dandar3.blogspot.com/2016/11/eclipse-integrate-firebase-analytics.html

In short, it's all about:

  • following the Processing the JSON file section in the Google Services Gradle plugin documentation to bring the google-services.json configuration into your project - see https://firebase.google.com/docs/reference/gradle/#processing_the_json_file
  • updating AndroidManifest.xml to add all the permissions, receivers, service etc that the Gradle plugin would generate for you in Android Studio (app\intermediates\manifests\full\debug\AndroidManifest.xml).

The Android team has moved away from Eclipse and onto Android Studio .. this transition has taken more than a year. You will continue to face ever increasing problems by staying on Eclipse (this issue with Firebase is one of them).

I would recommend moving to Android Studio and using the cocos game development mechanism discussed (briefly) in http://discuss.cocos2d-x.org/t/poll-remove-android-adt-support/29243

ahmed haron

Open Properties on your app and click add external JARs.

https://jar-download.com/artifacts/com.google.firebase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!