我想添加我的 Eclipse 项目 Firebase 分析,我在这个网站上做了一些研究,所以我从 firebase-analytics-9.4.0
中提取了 jar 文件,我把它放在 libs 文件夹中,并且我将它添加到构建路径中,但仍然需要弄清楚如何正确添加 JSON 文件,以及我应该在 list 文件中添加/更改什么,考虑到我将 google play 服务库添加到项目中。
由于多种原因,我无法使用 Android Studio(目前)。
谢谢你的帮助!!
最佳答案
可以在 Google 存储库中找到新的 Firebase (9xx) 库。您可以使用 Eclipse Android SDK 管理器安装它。打开 SDK 管理器并向下滚动,直到找到 Google Repository 并安装包。
软件包将安装在 /extras/google/m2repository
中您将在 /com/google/android/firebase
进一步找到 Firebase 文件.
您可以将.aar文件重命名为.zip并提取jar文件,将其放入libs文件夹中,然后按照将项目导入 Eclipse 的说明。
编辑:
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).
无论如何,您必须尽快迁移。与此同时。
关于android - 将 FireBase 分析添加到 Eclipse 项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40270258/