분류 전체보기 30

[React Native] 프로젝트 설치 오류 Your Ruby version is x.x.x, but your Gemfile specified x.x.x

문제 Mac에서 React Native 프로젝트 생성 도중 오류 발생 해결 버전 확인 ruby -v 버전이 안 맞을 경우 설치 rvm install "ruby-2.7.5" rvm use ruby-2.7.5 --default https://stackoverflow.com/a/74702514 Your Ruby version is 2.6.8, but your Gemfile specified 2.7.5 I have installed node@16(v16.18.0) in macOS and npm version: 8.19.2. Operating System macOS(Monterey) version: 12.6 Xcode Verion: 14.0.1 Followed some instructions to setup re..

React Native 2023.01.29

[안드로이드] Firebase Realtime Database가 Release APK에서 작동하지 않는 문제 해결

Debug에서는 잘 작동하지만 Release로 실행할 경우에 에러가 발생했다. 원인 Release 버전으로 생성할 경우 Proguard가 미사용 코드를 삭제함 정확하진 않아 필요한 클래스도 삭제될 수 있음 해결 ... @IgnoreExtraProperties @Keep public class Posto { public String uid; public String nome; ... 제거되지 않도록 해당 클래스에 annotation을 붙임 build.gradle : app으로 이동하여 implementation 'com.android.support:support-annotations:28.0.0' 추가 stackoverflow.com/questions/47669621/firebase-realtime-dat..

안드로이드 2021.04.24

[안드로이드] Debug / Release SHA-1 추출하기

Firebase를 사용하기 위해 프로젝트에 앱의 SHA-1를 필요로 하여 썼다. Debug SHA-1 만약 Gradle이 없다면 상단 메뉴 [View] - [Tool Windows] - [Gradle] [Run] 탭에 SHA-1 SHA-256 등의 코드가 표시됨. Release SHA-1 상단 [Build] - [Generate Signed Bundle or APK] - [APK] 선택 후 Next 현재 Keystore가 없다면 [Create New] -> Keystore를 저장할 경로를 설정하고 나머지를 입력한다. (Keystore 생성 후 분실하지 말 것. 나중에 앱을 구글 플레이 스토어에 게시할 경우 이 서명을 통해 계속 업데이트를 해야 함) keytool을 사용해 간단하게 출력할 수 있다. (ke..

안드로이드 2021.04.24

[안드로이드] 자동 백업 막기

앱을 제거하고 다시 설치해도 여전히 데이터가 남아 복원된다. 안드로이드 6.0 이후부터는 앱을 제거해도 구글 드라이브에 기록이 남는다고 한다. AndroidMenifest.xml -> 변경 앱을 삭제 후 실행해보기! tools:replace 기존의 allowBackup=true이면 이것을 false로 변경하였고 replace에 해당 속성을 넣으면 현재값으로 재설정함 속성 확인 developer.android.com/guide/topics/manifest/application-element?hl=ko | Android 개발자 | Android Developers 애플리케이션의 선언입니다. 이 요소는 애플리케이션의 각 구성요소를 선언하고 모든 구성요소에 영향을 줄 수 있는 속성을 가진 하위 요소를 포함합니다..

안드로이드 2021.03.18

안드로이드 Error msg : java.lang.IllegalStateException: commit already called

에러 val ft = supportFragmentManager.beginTransaction() ft.replace( ~~, ~~ ).commit() ft.replace(~~, ~~).commit() 한 번 commit이 실행된 Transaction은 다시 commit할 경우 에러가 발생함 해결 새로운 Transaction을 생성하여 commit해야 함 예) val ft = supportFragmentManager.beginTransaction() ft.replace(~~, ~~).commit() ft = supportFragmentManager.beginTransaction() ft.replace(~~, ~~).commit() https://ddunnimlabs.tistory.com/124 Fragme..

안드로이드 2021.01.11

안드로이드 Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6 에러 해결

build.gradle : app 으로 이동 android { ... compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = JavaVersion.VERSION_1_8.toString() } } 코드 추가 https://stackoverflow.com/questions/48988778/cannot-inline-bytecode-built-with-jvm-target-1-8-into-bytecode-that-is-being-bui Cannot inline bytecode built with JVM target 1.8 into..

안드로이드 2020.08.21