MinaSamir11 / react-native-in-app-review

The Google Play In-App Review API, App store rating API lets you prompt users to submit Play Store or App store ratings and reviews without the inconvenience of leaving your app or game.
MIT License
646 stars 56 forks source link

Error: The logging tag can be at most XY characters #147

Closed viktordanko closed 1 year ago

viktordanko commented 1 year ago

Hey, I encountered this error, when updating to RN 0.71.4.

~/node_modules/react-native-in-app-review/android/src/main/java/com/ibits/react_native_in_app_review/AppReviewModule.java:82: Error: The logging tag can be at most 23 characters, was 28 (isGooglePlaySerAvail._NOTTTT) [LongLogTag]
                Log.e("isGooglePlaySerAvail._NOTTTT", isGooglePlayServicesAvailable() + "");
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~/node_modules/react-native-in-app-review/android/src/main/java/com/ibits/react_native_in_app_review/AppReviewModule.java:144: Error: The logging tag can be at most 23 characters, was 78 (huawei_errorrr1 Ensure that your app has been correctly released on AppGallery) [LongLogTag]
                Log.e("huawei_errorrr1 Ensure that your app has been correctly released on AppGallery", isGooglePlayServicesAvailable() + "");
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~/node_modules/react-native-in-app-review/android/src/main/java/com/ibits/react_native_in_app_review/AppReviewModule.java:147: Error: The logging tag can be at most 23 characters, was 45 (huawei_errorrr1 in app comment Unknown error.) [LongLogTag]
                Log.e("huawei_errorrr1 in app comment Unknown error.", "Unknown error");
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~/node_modules/react-native-in-app-review/android/src/main/java/com/ibits/react_native_in_app_review/AppReviewModule.java:151: Error: The logging tag can be at most 23 characters, was 32 (huawei_errorrr1 rating submitted) [LongLogTag]
                Log.e("huawei_errorrr1 rating submitted", "rating done");
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~/node_modules/react-native-in-app-review/android/src/main/java/com/ibits/react_native_in_app_review/AppReviewModule.java:154: Error: The logging tag can be at most 23 characters, was 33 (huawei_errorrr1 Comment submitted) [LongLogTag]
                Log.e("huawei_errorrr1 Comment submitted", "rating done");
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~/node_modules/react-native-in-app-review/android/src/main/java/com/ibits/react_native_in_app_review/AppReviewModule.java:159: Error: The logging tag can be at most 23 characters, was 50 (huawei_errorrr1 check the HUAWEI ID sign-in status) [LongLogTag]
                Log.e("huawei_errorrr1 check the HUAWEI ID sign-in status",  "");
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~/node_modules/react-native-in-app-review/android/src/main/java/com/ibits/react_native_in_app_review/AppReviewModule.java:162: Error: The logging tag can be at most 23 characters, was 87 (huawei_errorrr1 The user does not meet the conditions for displaying the comment pop-up) [LongLogTag]
                Log.e("huawei_errorrr1 The user does not meet the conditions for displaying the comment pop-up", "");
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~/node_modules/react-native-in-app-review/android/src/main/java/com/ibits/react_native_in_app_review/AppReviewModule.java:165: Error: The logging tag can be at most 23 characters, was 52 ( huawei_errorrr1 The commenting function is disabled) [LongLogTag]
                Log.e(" huawei_errorrr1 The commenting function is disabled", "disabled");
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~/node_modules/react-native-in-app-review/android/src/main/java/com/ibits/react_native_in_app_review/AppReviewModule.java:168: Error: The logging tag can be at most 23 characters, was 132 (huawei_errorrr1 The in-app commenting service is not supported. (Apps released in the Chinese mainland do not support this service.)) [LongLogTag]
                Log.e("huawei_errorrr1 The in-app commenting service is not supported. (Apps released in the Chinese mainland do not support this service.)", "in-app commenting service is not supported");
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~/node_modules/react-native-in-app-review/android/src/main/java/com/ibits/react_native_in_app_review/AppReviewModule.java:171: Error: The logging tag can be at most 23 characters, was 46 (huawei_errorrr1 The user canceled the comment.) [LongLogTag]
                Log.e("huawei_errorrr1 The user canceled the comment.", "user canceled");
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

   Explanation for issues of type "LongLogTag":
   Log tags are only allowed to be at most 23 tag characters long.

~/node_modules/react-native-in-app-review/android/build.gradle:18: Warning: A newer version of com.android.tools.build:gradle than 3.6.3 is available: 7.4.2. (There is also a newer version of 3.6.𝑥 available, if upgrading to 7.4.2 is difficult: 3.6.4) [AndroidGradlePluginVersion]
      classpath 'com.android.tools.build:gradle:3.6.3'
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

System: OS: macOS 13.2.1 CPU: (8) arm64 Apple M1 Memory: 90.69 MB / 16.00 GB Shell: 3.6.0 - /opt/homebrew/opt/fish/bin/fish Binaries: Node: 19.7.0 - /opt/homebrew/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 9.5.0 - /opt/homebrew/bin/npm Watchman: 2023.03.06.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.12.0 - ~/.rvm/gems/ruby-2.7.6/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1 Android SDK: API Levels: 31, 33, 33 Build Tools: 30.0.3, 31.0.0, 33.0.0, 33.0.2 System Images: android-31 | Intel x86 Atom_64, android-31 | Google APIs ARM 64 v8a Android NDK: Not Found IDEs: Android Studio: 2022.1 AI-221.6008.13.2211.9619390 Xcode: 14.2/14C18 - /usr/bin/xcodebuild Languages: Java: 11.0.18 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.2.0 => 18.2.0 react-native: ^0.71.0 => 0.71.4 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Any idea how to fix this?

MinaSamir11 commented 1 year ago

I will solve it this day.

MinaSamir11 commented 1 year ago

Published new version please check issue still exists! Thank u

viktordanko commented 1 year ago

Thanks for the update! I probably didn't include the error log properly, so some of the errors stays image

MinaSamir11 commented 1 year ago

please delete the old v4.3.1 and run

npm install react-native-in-app-review
MinaSamir11 commented 1 year ago

this issues has been solved, it means that there’s something cashed in your project, if issue still exist please reply to continue solving your issue, I’m closing this issue until we find issue still exist