Reputation: 496
I have installed Fabric (Crashlytics) plugin for Eclipse, set up single project to use Crashlytics. 4 dependency projects were created under that project, they got imported to the workspace, everything worked fine.
I wanted to set up second project, which is in the same workspace, to use Crashlytics. Did the Crashlytics initialization via the plugin, and got the same 4 Fabric dependency projects imported into workspace, just with "_2" appended to the name, see the image below.
If I close the auto-generated projects, I get build errors.
My questions:
Thank you .
Upvotes: 1
Views: 646
Reputation: 496
The workaround that I have found is to save Fabric (Crashlytics) generated projects to some location and delete the auto imported ones.
In your Fabric enabled project you will have "kits.properties" file. You can comment out the last line, which specifies the crashlytics version. This will prevent that project from re-generating and importing fabric libraries to your workspace. The file should look something like this:
# This file describes the kits for your project.
# Commit this and the kits folder into source control.
#com.crashlytics.sdk.android:crashlytics:2.2.2
After that, you can import previously saved projects to the workspace and add them as dependencies to your android project. You can add them to multiple projects, this solves the multiple auto generated projects problem.
Upvotes: 1