react-native-china / react-native-webkit-webview

💼 Common webkit latest-feature-supported webview for both android and iOS platform
MIT License
15 stars 5 forks source link

error while building in react native 0.51 #6

Closed ikhsanalatsary closed 6 years ago

ikhsanalatsary commented 6 years ago

The Error occur:

* What went wrong:
Execution failed for task ':app:prepareXwalk_core_library22525614Library'.
> Could not expand ZIP '/<root>/android/app/libs/xwalk_core_library-22.52.561.4.aar'.

i saw with --stacktrace command:

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:prepareXwalk_core_library22525614Library'.
....

Caused by: java.util.zip.ZipException: archive is not a ZIP archive
        at org.apache.tools.zip.ZipFile.positionAtEndOfCentralDirectoryRecord(ZipFile.java:771)
....

my Env & deps:

  1. Mac OSX ElCapitan
  2. React-native 0.51
  3. react-native-webkit-webview 0.10.7
  4. react 16

how to resolve this?

thank you

ikhsanalatsary commented 6 years ago

Update: solved.

I do sudo in any command and do cp node_modules/react-native-webkit-webview/libs/xwalk_core_library-22.52.561.4.aar android/app/libs/ 2 times