-2

I am using this example but still i need to write my API key in AndroidManifest.xml..

https://github.com/plastiv/CrashlyticsDemo/

alessandrio
  • 4,282
  • 2
  • 29
  • 40

1 Answers1

0

Follow this steps:-

https://github.com/plastiv/CrashlyticsDemo/

mostly people have to problem run the gradle command line so you can use like this:

1) Open terminal.

2) Go to your project work space

3) ./gradlew

(Note if permission denies error use this command- chmod 744 gradlew and again run ./gradlew)

(4) ./gradlew assemble -P apiKey=Your fabric api key

Now you can fully secret your api key but remember one thing your fabric.properties looks like that

fabric.properties:-

apiSecret=”Your fabric secret key” apiKey=”Your fabric api key”

Enjoy! You dont need to write your fabric key in your AndroidManifest.xml....

Arish Khan
  • 254
  • 4
  • 10
  • Ok that's wprking fine... Thanks! – user8073310 May 27 '17 at 05:51
  • I am getting this error after removing key from manifeest Error:Execution failed for task ':app:fabricGenerateResourcesDebug'. > Crashlytics Developer Tools error. – VVB Aug 18 '17 at 01:08
  • As a heads up, you may need to disable Instant Run on Android Studio for this solution to work. – Will Dec 12 '17 at 20:03