Closed 94wogus closed 4 years ago
흠 먼저 제가 바빠서 요즘에 관리를 잘 못하고 있는데,,, 죄송합니다. 비슷한 이슈가 있어서 찾아봤는데 https://github.com/wix/react-native-navigation/issues/4671 참고해보실래요 compileSDK Version에 따른 문제일 수도 있을거같네요
죄송하긴요 쉽게 로그인 구현하는데 제가 감사하죠..ㅠㅠ
android/build.gradle
buildscript {
ext.kotlinVersion = '1.3.10'
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0"
googlePlayServicesVersion = "16.1.0"
firebaseVersion = "17.3.4"
googlePlayServicesAuthVersion = "15.0.1"
}
repositories {
google()
jcenter()
maven {
url 'https://maven.fabric.io/public'
}
}
dependencies {
classpath "com.android.tools.build:gradle:3.5.0"
classpath 'com.google.gms:google-services:4.3.2' // firebase
classpath 'io.fabric.tools:gradle:1.28.1' // Crashlytics
}
}
인데...ㅠㅠ firebase 버전이 달라서 그런건 아닐까요...?? 현재 5.4.2버전인데...
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
이걸 기준으로 구글링을 해보니까 몇개 글이 나오긴 하네요...파이어베이스 문제라고 생각하신다면(아닌거같긴한데,,,ㅠㅠ) 혹시 테스트로 네이버로그인 모듈만 연동해서 빌드 해보실 수 있나요???
/node_modules/@react-native-seoul/naver-login/android/build.gradle 에서
def DEFAULT_COMPILE_SDK_VERSION = 28
def DEFAULT_BUILD_TOOLS_VERSION = "28.0.3"
버전 문제일 가능성이 있다고 하셔서 이렇게 바꾸니 위의 오류는 발생하지 않습니다.
다만 다른 문제가 발생하는데 아래 로그로 발생합니다.
> Configure project :@react-native-seoul_naver-login
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed soon. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
> Configure project :react-native-firebase
react-native-firebase: using React Native prebuilt binary from /home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native/android
> Task :@react-native-community_google-signin:compileReleaseJavaWithJavac
Note: /home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/@react-native-community/google-signin/android/src/
main/java/co/apptailor/googlesignin/RNGoogleSigninModule.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :lottie-react-native:compileReleaseJavaWithJavac
Note: /home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/lottie-react-native/src/android/src/main/java/com/
airbnb/android/react/lottie/LottieAnimationViewManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :react-native-fast-image:compileReleaseJavaWithJavac
Note: [2] Wrote GeneratedAppGlideModule with: [com.bumptech.glide.integration.okhttp3.OkHttpLibraryGlideModule,
com.dylanvann.fastimage.FastImageOkHttpProgressGlideModule]
> Task :react-native-fbsdk:compileReleaseJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-fbsdk/android/src/main/java/com/faceb
ook/reactnative/androidsdk/Utility.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :react-native-firebase:compileReleaseJavaWithJavac FAILED
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase
/firebase/analytics/RNFirebaseAnalyticsPackage.java:3: error: package android.support.annotation does not exis
import android.support.annotation.RequiresPermission;
^
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase
/firebase/ReactNativeFirebaseAppRegistrar.java:20: error: package android.support.annotation does not exist
import android.support.annotation.Keep;
^
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/ReactNativeFirebaseAppRegistrar.java:29: error: cannot find symbol
@Keep
^
symbol: class Keep
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java:7: error: cannot find symbol
import android.support.v4.app.NotificationManagerCompat;
^
symbol: class NotificationManagerCompat
location: package android.support.v4.app
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java:8: error: package android.support.v4.content does not exist
import android.support.v4.content.LocalBroadcastManager;
^
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessagingService.java:5: error: package android.support.v4.content does not exist
import android.support.v4.content.LocalBroadcastManager;
^
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/storage/RNFirebaseStoragePackage.java:3: error: package android.support.annotation does not exist
import android.support.annotation.RequiresPermission;
^
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseBackgroundNotificationActionReceiver.java:8: error: cannot find symbol
import android.support.v4.app.RemoteInput;
^
symbol: class RemoteInput
location: package android.support.v4.app
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:20: error: package android.support.annotation does not exist
import android.support.annotation.RequiresApi;
^
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:21: error: package android.support.v4.content does not exist
import android.support.v4.content.LocalBroadcastManager;
^
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:15: error: cannot find symbol
import android.support.v4.app.NotificationCompat;
^
symbol: class NotificationCompat
location: package android.support.v4.app
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:16: error: cannot find symbol
import android.support.v4.app.RemoteInput;
^
symbol: class RemoteInput
location: package android.support.v4.app
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:412: error: package NotificationCompat does not exist
private NotificationCompat.Action createAction(
^
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:499: error: cannot find symbol
private RemoteInput createRemoteInput(Bundle remoteInput) {
^
symbol: class RemoteInput
location: class DisplayNotificationTask
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotifications.java:10: error: cannot find symbol
import android.support.v4.app.RemoteInput;
^
symbol: class RemoteInput
location: package android.support.v4.app
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotifications.java:11: error: package android.support.v4.content does not exist
import android.support.v4.content.LocalBroadcastManager;
^
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/analytics/RNFirebaseAnalyticsPackage.java:17: error: cannot find symbol
@RequiresPermission(
^
symbol: class RequiresPermission
location: class RNFirebaseAnalyticsPackage
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/storage/RNFirebaseStoragePackage.java:17: error: cannot find symbol
@RequiresPermission(
^
symbol: class RequiresPermission
location: class RNFirebaseStoragePackage
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:370: error: cannot find symbol
@RequiresApi(api = 26)
^
symbol: class RequiresApi
location: class RNFirebaseNotificationManager
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:384: error: cannot find symbol
@RequiresApi(api = 26)
^
symbol: class RequiresApi
location: class RNFirebaseNotificationManager
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:398: error: cannot find symbol
@RequiresApi(api = 26)
^
symbol: class RequiresApi
location: class RNFirebaseNotificationManager
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:414: error: cannot find symbol
@RequiresApi(api = 26)
^
symbol: class RequiresApi
location: class RNFirebaseNotificationManager
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:457: error: cannot find symbol
@RequiresApi(api = 26)
^
symbol: class RequiresApi
location: class RNFirebaseNotificationManager
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java:36: error: cannot find symbol
LocalBroadcastManager localBroadcastManager = LocalBroadcastManager.getInstance(context);
^
symbol: class LocalBroadcastManager
location: class RNFirebaseMessaging
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java:36: error: cannot find symbol
LocalBroadcastManager localBroadcastManager = LocalBroadcastManager.getInstance(context);
^
symbol: variable LocalBroadcastManager
location: class RNFirebaseMessaging
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java:90: error: cannot find symbol
Boolean enabled = NotificationManagerCompat
^
symbol: variable NotificationManagerCompat
location: class RNFirebaseMessaging
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessagingService.java:26: error: cannot find symbol
LocalBroadcastManager
^
symbol: variable LocalBroadcastManager
location: class RNFirebaseMessagingService
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessagingService.java:41: error: cannot find symbol
LocalBroadcastManager
^
symbol: variable LocalBroadcastManager
location: class RNFirebaseMessagingService
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessagingService.java:51: error: cannot find symbol
LocalBroadcastManager
^
symbol: variable LocalBroadcastManager
location: class RNFirebaseMessagingService
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseBackgroundNotificationActionReceiver.java:62: error: cannot find symbol
Bundle remoteInput = RemoteInput.getResultsFromIntent(intent);
^
symbol: variable RemoteInput
location: class RNFirebaseBackgroundNotificationActionReceiver
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:204: error: cannot find symbol
LocalBroadcastManager
^
symbol: variable LocalBroadcastManager
location: class RNFirebaseNotificationManager
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:81: error: package NotificationCompat does not exist
NotificationCompat.Builder nb;
^
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:84: error: package NotificationCompat does not exist
nb = new NotificationCompat.Builder(context, channelId);
^
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:87: error: package NotificationCompat does not exist
nb = new NotificationCompat.Builder(context);
^
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:130: error: package NotificationCompat does not exist
NotificationCompat.BigPictureStyle bp = new NotificationCompat.BigPictureStyle();
^
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:130: error: package NotificationCompat does not exist
NotificationCompat.BigPictureStyle bp = new NotificationCompat.BigPictureStyle();
^
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:163: error: package NotificationCompat does not exist
NotificationCompat.BigTextStyle bt = new NotificationCompat.BigTextStyle();
^
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:163: error: package NotificationCompat does not exist
NotificationCompat.BigTextStyle bt = new NotificationCompat.BigTextStyle();
^
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:366: error: package NotificationCompat does not exist
NotificationCompat.Action action = createAction(context, a, intentClass, notification);
^
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:429: error: package NotificationCompat.Action does not exist
NotificationCompat.Action.Builder ab = new NotificationCompat.Action.Builder(
^
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:429: error: package NotificationCompat.Action does not exist
NotificationCompat.Action.Builder ab = new NotificationCompat.Action.Builder(
^
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:442: error: cannot find symbol
RemoteInput remoteInput = createRemoteInput(ri);
^
symbol: class RemoteInput
location: class DisplayNotificationTask
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:501: error: package RemoteInput does not exist
RemoteInput.Builder rb = new RemoteInput.Builder(resultKey);
^
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:501: error: package RemoteInput does not exist
RemoteInput.Builder rb = new RemoteInput.Builder(resultKey);
^
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotifications.java:54: error: cannot find symbol
LocalBroadcastManager localBroadcastManager = LocalBroadcastManager.getInstance(context);
^
symbol: class LocalBroadcastManager
location: class RNFirebaseNotifications
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotifications.java:54: error: cannot find symbol
LocalBroadcastManager localBroadcastManager = LocalBroadcastManager.getInstance(context);
^
symbol: variable LocalBroadcastManager
location: class RNFirebaseNotifications
/home/fanrepubilc/Desktop/fanrep_ver2_app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotifications.java:308: error: cannot find symbol
Bundle remoteInput = RemoteInput.getResultsFromIntent(intent);
^
symbol: variable RemoteInput
location: class RNFirebaseNotifications
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
47 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-firebase:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* 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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 8s
182 actionable tasks: 170 executed, 12 up-to-date
npx jetify로 해결 했습니다~!! 감사 합니다 (꾸벅)
안녕하세요 저는 npx jetify로 해결이 되지 않아 다른 구글링을 더 해본 결과 다음 링크에서 해결할 수 있었습니다.
좌: android/build.gradle 우: node_module/@react-native-seoul/naver-login/android/build.gradle
버전을 변경해주고 난 뒤 다시 빌드했을 때 성공했습니다.
Version of kakao-login libraries
"@react-native-seoul/naver-login": "^2.1.0"
Version of react-native
"react-native": "0.60.0"
Platforms you faced the error (IOS or Android or both?)
Android
Expected behavior
./gradlew assembleRelease
Actual behavior
현재 테스트 에서는 굉장히 잘 돌아갑니다. apk로 빌드 테스트 해보려 진행하던 중에 @react-native-seoul_naver-login:verifyReleaseResources FAILED이 나고 있습니다.
에러 로그는 다음과 같습니다.
> Configure project :@react-native-seoul_naver-login
이것도 두번 되고 있어서 뭔가 제가 설정을 잘못한건가 싶기도 하고...ㅠㅠ 도와주세요...ㅠㅠㅠ
Tested environment (Emulator? Real Device?)
apk 빌드가 안되는거라...