f111fei / react-native-unity-view

Show an unity view in react native
MIT License
401 stars 102 forks source link

Execution failed for task ':UnityExport:BuildIl2CppTask'. #152

Closed TeeRa0ne closed 3 years ago

TeeRa0ne commented 3 years ago

Hi everyone,

I'm working on a project with this lib but i have error and i don't know how fix this :

What went wrong: Execution failed for task ':UnityExport:BuildIl2CppTask'.

A problem occurred starting process 'command '/Users/xxxx/Desktop/xxxx/xxxx-react-native-cli/app/android/UnityExport/src/main/Il2CppOutputProject/IL2CPP/build/deploy/netcoreapp3.1/il2cpp.exe''`

Do you have a solution ?

komalharmale commented 3 years ago

Hi everyone,

I'm working on a project with this lib but i have error and i don't know how fix this :

What went wrong: Execution failed for task ':UnityExport:BuildIl2CppTask'.

A problem occurred starting process 'command '/Users/xxxx/Desktop/xxxx/xxxx-react-native-cli/app/android/UnityExport/src/main/Il2CppOutputProject/IL2CPP/build/deploy/netcoreapp3.1/il2cpp.exe''`

Do you have a solution ?

Did you find any solution

komalharmale commented 3 years ago

i am also facing same issue can you tell me the solution if you find any

TeeRa0ne commented 3 years ago

Yes i find a solution :

  1. You need to have Unity on your PC, me i work with this version 2020.3.17f1 with this modules:

    Capture d’écran 2021-09-23 à 16 32 32
  2. Delete the UnityExport folder in Android folder of your project

  3. And run a new build in Unity

    Capture d’écran 2021-09-23 à 16 36 05

I hope me solution will help you.