Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Android build fails | Expo app using prebuild #224

Open
felri opened this issue Jul 29, 2023 · 4 comments
Open

Android build fails | Expo app using prebuild #224

felri opened this issue Jul 29, 2023 · 4 comments

Comments

@felri
Copy link

felri commented Jul 29, 2023

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
Copy link

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

@barghi
Copy link

barghi commented Sep 7, 2023

Same here

@mjamroz
Copy link

mjamroz commented Sep 24, 2023

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

@TheEndurance
Copy link

Anyone find a solution here?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants