facebookresearch / playtorch

PlayTorch is a framework for rapidly creating mobile AI experiences.
https://playtorch.dev/
MIT License
830 stars 101 forks source link

Android build fails | Expo app using prebuild #224

Open felri opened 1 year ago

felri commented 1 year ago

Version

0.2.4

Problem Area

Core

Steps to Reproduce

1.npx create-expo-app my-app 2.npx expo install react-native-pytorch-core 3.npx expo prebuild 4.npm run android

Expected Results

No response

Code example, screenshot, or link to repository

The error:

FAILURE: Build failed with an exception.

* Where:
Build file '/.../node_modules/react-native-pytorch-core/android/build.gradle' line: 132

* What went wrong:
A problem occurred evaluating project ':react-native-pytorch-core'.
> Expected directory '/../node_modules/react-native/android' to contain exactly one file, however, it contains no files.

system:

Apple M1 Pro
node : v20.2.0
"dependencies": {
    "@expo/vector-icons": "^13.0.0",
    "@react-navigation/native": "^6.0.2",
    "expo": "~49.0.5",
    "expo-font": "~11.4.0",
    "expo-linking": "~5.0.2",
    "expo-router": "2.0.0",
    "expo-splash-screen": "~0.20.4",
    "expo-status-bar": "~1.6.0",
    "expo-system-ui": "~2.4.0",
    "expo-web-browser": "~12.3.2",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-native": "0.72.3",
    "react-native-gesture-handler": "~2.12.0",
    "react-native-pytorch-core": "^0.2.4",
    "react-native-safe-area-context": "4.6.3",
    "react-native-screens": "~3.22.0",
    "react-native-web": "~0.19.6"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@types/react": "~18.2.14",
    "jest": "^29.2.1",
    "jest-expo": "~49.0.0",
    "react-test-renderer": "18.2.0",
    "typescript": "^5.1.3"
  },
tanuj1985jan commented 1 year ago

I am also facing same issue, please help on this.

barghi commented 1 year ago

Same here

mjamroz commented 11 months ago

Afaik you can completely remove that block checking/loading aar's for newest rn.

TheEndurance commented 11 months ago

Anyone find a solution here?