rusel1989 / react-native-bluetooth-serial

Port of https://github.com/don/BluetoothSerial for react native
476 stars 291 forks source link

A problem occurred configuring project ':react-native-bluetooth-serial' #69

Open vladinko0 opened 6 years ago

vladinko0 commented 6 years ago

Version

Expected behaviour

I would like to run BluetoothSerialExample.

Actual behaviour

react-native run-android command gives me:

FAILURE: Build failed with an exception.

What went wrong: A problem occurred configuring project ':app'. Could not resolve all dependencies for configuration ':app:_debugApk'. A problem occurred configuring project ':react-native-bluetooth-serial'. Could not open cp_proj remapped class cache for ay4xg1fu98is87pt2j4fku0yv (C:\Users\admin.gradle\caches\2.14.1\scripts-remapped\build_bfacq92w16lpdzm7hn94qvq1g\ay4xg1fu98is87pt2j4fku0yv\cp_proj57408229). Could not open cp_proj generic class cache for build file 'C:\Users\admin\Documents\ReactNative\test4\node_modules\react-native-bluetooth-serial\android\build.gradle' (C:\Users\admin.gradle\caches\2.14.1\scripts\ay4xg1fu98is87pt2j4fku0yv\cp_proj\cp_proj57408229). java.io.FileNotFoundException: C:\Users\admin.gradle\caches\2.14.1\scripts\ay4xg1fu98is87pt2j4fku0yv\cp_proj\cp_proj57408229\cache.properties (The system cannot find the file specified)

Steps to reproduce

  1. react-native init test
  2. npm i -S react-native-bluetooth-serial
  3. npm i
  4. react-native link

npm install @remobile/react-native-toast --save

  1. react-native link
  2. copy content of BluetoothSerialExample/src/App.js to clean test/App.js
vladinko0 commented 6 years ago

I solved it by deleting the cache.

JustCotne commented 1 year ago

which cache did u delete?