Open eubnara opened 5 years ago
$ react-native run-android
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...
> Configure project :app
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: The specified Android SDK Build Tools version (25.0.0) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.3.1.
Android SDK Build Tools 28.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '25.0.0'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
WARNING: API 'variant.getPackageApplication()' is obsolete and has been replaced with 'variant.getPackageApplicationProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getPackageApplication(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
WARNING: API 'variant.getMergeAssets()' is obsolete and has been replaced with 'variant.getMergeAssetsProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeAssets(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
> Configure project :react-native-naver-login
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: The specified Android SDK Build Tools version (27.0.3) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.3.1.
Android SDK Build Tools 28.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '27.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
> Configure project :react-native-reanimated
WARNING: The specified Android SDK Build Tools version (25.0.2) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.3.1.
Android SDK Build Tools 28.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '25.0.2'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
FAILURE: Build failed with an exception.
* Where:
Build file '/tmp/react-native-naver-login/NaverLoginExample/node_modules/react-native-reanimated/android/build.gradle' line: 35
* What went wrong:
A problem occurred evaluating project ':react-native-reanimated'.
> Cannot get property 'supportLibVersion' on extra properties extension as it does not exist
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 4s
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
naver
적용방법
https://github.com/react-native-seoul/react-native-naver-login#getting-started
참고: https://github.com/reiui9/Moim/commit/c3733c0231230b66947b4f52dea3e457d471cf85
react-native-naver-login API 정리
NaverLogin
<Object>
NaverLogin.login(initials, callback)
NaverLogin.logout()
getProfile
getProfile(accessToken)
trouble shooting
``` $ react-native run-android JS server already running. Building and installing the app on the device (cd android && ./gradlew installDebug)... NDK is missing a "platforms" directory. If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to /home/eub/Android/Sdk/ndk-bundle. If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning. NDK is missing a "platforms" directory. If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to /home/eub/Android/Sdk/ndk-bundle. If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning. FAILURE: Build failed with an exception. * Where: Build file '/home/eub/github/react-native-naver-login/NaverLoginExample/node_modules/react-native-naver-login/android/build.gradle' line: 39 * What went wrong: A problem occurred evaluating project ':react-native-naver-login'. > Could not find method implementation() for arguments [com.naver.nid:naveridlogin-android-sdk:4.2.5] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 0.638 secs Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/getting-started.html ``` ndk 설치해야 하는 듯? #### appcompat v7 관련 에러 react-native 0.57.8 버전에서 com.android.support:appcompat-v7:27.1.1 을 필요로 한다. 그런데 다운로드를 못받는 느낌. 확인해보니 특정 버전 이상부터 받는 주소가 변경된 것으로 보인다. https://stackoverflow.com/questions/45357000/failed-to-resolve-com-android-supportappcompat-v726-0-0 를 참고하여, build.gradle repositories 부분을 변경한다. #### manifest 충돌 이슈 ``` /tmp/react-native-naver-login/NaverLoginExample/android/app/src/main/AndroidManifest.xml:34:9-68 Error: Attribute activity#com.nhn.android.naverlogin.ui.OAuthLoginActivity@theme value=(@android:style/Theme.Translucent.NoTitleBar) from AndroidManifest.xml:34:9-68 is also present at [com.naver.nid:naveridlogin-android-sdk:4.2.5] AndroidManifest.xml:19:13-64 value=(@style/Theme.AppCompat.Light.Dialog). Suggestion: add 'tools:replace="android:theme"' to