This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hi guys, I study computer engineering and one of my assignments for the semester is to create an app, with react native, so I'm new to this area, I've been studying for about 3 days (so be kind, and if you need for more information, just ask and I will send it).
I've been having a problem for a few days now and I can't solve it in any way, I hope you can help me
Context: I'm trying to use a different font in my project, I tried the most native way possible, creating the fonts file within assets, using expo-font and adding its path to the app.json file, when using the npx expo start
command and the warning "not a system font" opened in expo go and it was not loaded. Then I discovered that I needed to give npx expo prebuild
and then npx expo run:android
But I didn't have an Android emulator, so I downloaded Android Studio, and that's where my biggest problem began. I can create a project normally in Android Studio, I can even open the emulator normally, but when I use run:android I get this error error:
> Task :expo-modules-core:configureCMakeDebug[arm64-v8a] FAILED
Task :expo:compileDebugKotlinw: file:///C:/Users/Public/ViaSegura/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt:139:50 No cast neededFAILURE: Build failed with an exception.* What went wrong: Execution failed for task ':expo-modules-core:configureCMakeDebug[arm64-v8a]'. > [CXX1429] error when building with cmake using C:\Users\Public\ViaSegura\node_modules\expo-modules-core\android\CMakeLists.txt: C build system [prefab] failed while executing
Complete error: https://pastebin.com/jkpDih1b
Additional info
JDK: 17
Gradle: 8.7 (I downloaded it from the website and created the directory: "C:Gradle" and extracted the files inside)
Node: 21.7.1
Windows 10
Using Visual Studio
Environment variables:
ANDROID_HOME= C:\Users\Public\Android\Sdk
JAVA_HOME= C:\Program Files\Java\jdk-17
PATH's:
1. C:\Users\Public\Android\Sdk\platform-tools
2. C:\Gradle\gradle-8.7\bin
3. C:\Users\Public\Android\Sdk\emulator
4. C:\Users\Public\Android\Sdk\tools\bin
5. C:\Users\Public\Android\Sdk\platform-tools
6. C:\Users\Public\Android\Sdk\tools
7.C:\Gradle\gradle-8.7
Subreddit
Post Details
- Posted
- 8 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/reactnative...