-
Expo에서 Nfc 사용해보기React-Native/Expo앱만들기 2022. 7. 27. 09:57728x90
https://github.com/revtel/react-native-nfc-manager#advanced-usage
https://docs.expo.dev/workflow/customizing/
사용자 정의 네이티브 추가 하는 과정 ... expo go 앱에선 실행 안됨.
expo run:android
이용해서 설치 하는데, 에러가 발생한다...
오류 내용처럼 일딴
npm install -g sharp-cli 설치한다.
No Android connected device found, and no emulators could be started automatically. Please connect a device or create an emulator (https://docs.expo.dev/workflow/android-studio-emulator). Then follow the instructions here to enable USB debugging: https://developer.android.com/studio/run/device.html#developer-device-options. If you are using Genymotion go to Settings -> ADB, select "Use custom Android SDK tools", and point it at your Android SDK directory.
흠.. android studio 디바이스를 키라는 뜻인가
https://reactnative.dev/docs/environment-setup
Android 12(S)가 있어야 된다고 한다 SDK 근데 내 android 스튜디오에는 안깔려 있다 그래서 에러가 나는건가?
오류발생
exited with non-zero code: 1
똑같은 오류 찾음!!
https://github.com/expo/expo/issues/15183
환경변수 안잡아줬다고 빌드 안된다는거 같다.
...2022-07-27 빌드가 안됨
https://reactnative.dev/docs/environment-setup
여기에 있는대로 시키는대로 똑같이 하니까 에뮬레이터 키는거 까진 성공
jdk까지 깔아서 JAVA_HOME 환경변수까지 잡으니까 됬다.
근데 문제는 build를 하니까 오류가 또 발생함
[stderr] FAILURE: Build failed with an exception. [stderr] * What went wrong: [stderr] Execution failed for task ':app:bundleReleaseResources'. [stderr] > A failure occurred while executing com.android.build.gradle.internal.res.Aapt2ProcessResourcesRunnable [stderr] > Android resource linking failed [stderr] ERROR:/home/expo/workingdir/build/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:3: AAPT: error: resource color/iconBackground (aka com.nfctest:color/iconBackground) not found. [stderr] [stderr] ERROR:/home/expo/workingdir/build/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:3: AAPT: error: resource color/iconBackground (aka com.nfctest:color/iconBackground) not found. [stderr] [stderr] * Try: [stderr] > Run with --stacktrace option to get the stack trace. [stderr] > Run with --info or --debug option to get more log output. [stderr] > Run with --scan to get full insights. [stderr] * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings Execution optimizations have been disabled for 4 invalid unit(s) of work during this build to ensure correctness. Please consult deprecation warnings for more details. 141 actionable tasks: 141 executed [stderr] BUILD FAILED in 2m 29s Error: Gradle build failed with unknown error. Please see logs for the "Run gradlew" phase.
참고 자료 기록
https://reactnative.dev/docs/environment-setup
https://docs.expo.dev/workflow/customizing/
https://docs.expo.dev/development/getting-started/
https://docs.expo.dev/development/build/
https://docs.expo.dev/get-started/create-a-new-app/
https://www.youtube.com/watch?v=id0Im72UN6w&t=150s
https://github.com/mrousavy/react-native-blurhash
728x90'React-Native > Expo앱만들기' 카테고리의 다른 글
expo 푸시토큰으로 알람구성할때 fcm설정방법 (0) 2022.03.22 -expo ios AppStore 배포하기 (0) 2022.03.18 EXPO푸시알람 구현하기(3) (0) 2021.12.16 EXPO푸시알람 구현하기(2) (0) 2021.12.16 EXPO푸시알람 구현하기(1) (0) 2021.12.15