Ignite: Could not expand ZIP - react-native-device-info-release.aar

Created on 27 Mar 2017  路  8Comments  路  Source: infinitered/ignite


What's going on?

Build failed with an exception after adding a plugin - https://github.com/dabit3/ignite-elements

Steps to reproduce

  1. Follow the basic setup and add the plugin:
$ npm install -g ignite-cli
$ ignite new IgniteApp
$ cd IgniteApp
$ ignite add elements
$ react-native run-android
  1. Build failed error message will be generated.
...
:app:prepareComGoogleAndroidGmsPlayServicesTasks1021Library UP-TO-DATE
:app:prepareIgniteAppReactNativeConfigUnspecifiedLibrary
:app:prepareIgniteAppReactNativeDeviceInfoUnspecifiedLibrary FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:prepareIgniteAppReactNativeDeviceInfoUnspecifiedLibrary'.
> Could not expand ZIP 'D:\dev\test\IgniteApp\node_modules\react-native-device-info\android\build\outputs\aar\react-native-device-info-release.aar'.

ignite doctor results:

  platform           win32
  arch               x64
  cpu                4 cores                 Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz
  directory          D:\dev\test\IgniteApp

JavaScript
  node               7.6.0        C:\Program Files\nodejs\node.EXE
  npm                4.1.2        C:\Program Files\nodejs\npm.CMD
  yarn               0.21.3       C:\Program Files (x86)\Yarn\bin\yarn.CMD

React Native
  react-native-cli   2.0.1
  app rn version     0.42.0

Ignite
  ignite             2.0.0-beta.8   C:\Program Files\nodejs\ignite.CMD

Android
  java               -            C:\Program Files\Java\jdk1.8.0_60\bin\java.EXE
  android home       -            D:\ProgramData\Android\sdk

Most helpful comment

Thanks to Bela Berentes @Slack,
To fix the issue, do a gradlew clean after installation of the plugin.

All 8 comments

Thanks to Bela Berentes @Slack,
To fix the issue, do a gradlew clean after installation of the plugin.

how do I make a gradle clean ?

@badf007 cd android && ./gradlew clean

@badf007 Did the advice from @GantMan work?

@nonameolsson it works for me.

cd android && gradlew clean

It work for me cd android && gradlew clean

it's work

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shawn-tangsc picture shawn-tangsc  路  3Comments

orozcojair picture orozcojair  路  3Comments

GantMan picture GantMan  路  3Comments

GantMan picture GantMan  路  3Comments

tayfunyasar picture tayfunyasar  路  3Comments