sarriaroman / FabricPlugin

Fabric.io plugin for Cordova or Phonegap
MIT License
198 stars 159 forks source link

Cant build Android - ERROR - Crashlytics Developer Tools #163

Closed Carsak closed 3 years ago

Carsak commented 3 years ago

Ionic 3 "cordova-fabric-plugin": "1.1.14-dev",

When I trying build my android app with command ionic cordova run android --device --release --prod Error appears

ERROR - Crashlytics Developer Tools error.
java.lang.IllegalArgumentException: Crashlytics found an invalid API key: $FABRIC_API_KEY. 
Check the Crashlytics plugin to make sure that the application has been added successfully! 

I have added key in package.json:

 "cordova-fabric-plugin": {
        "FABRIC_API_KEY": "key11111111",
        "FABRIC_API_SECRET": "secret22222"
      },

I have added to config.xml?:

  <plugin name="cordova-fabric-plugin" spec="1.1.14-dev">
        <variable name="FABRIC_API_KEY" value="key11111111" />
        <variable name="FABRIC_API_SECRET" value="secret22222" />
    </plugin>

But error still appears

Carsak commented 3 years ago

So, I deleted platform plugins folder, than run command cordova prepare than ionic cordova run android --device --release --prod all works

Important Dont use command ionic cordova prepare or noting will work use only direct cordova cli cordova prepare