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
665 stars 62 forks source link

Crashing on android #28

Closed trtq closed 3 years ago

trtq commented 3 years ago

On ios, reviews work flawlessly. On android, trying to run the app after installing crashes for us with this error.

error: package com.ibits.react_native_in_app_review does not exist
import com.ibits.react_native_in_app_review.AppReviewPackage;
                                           ^
 error: cannot find symbol
      new AppReviewPackage(),
          ^
  symbol:   class AppReviewPackage
  location: class PackageList
2 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDevDebugJavaWithJavac'.

Trying to fix this, i turned off automatic linking via react-native.config.js and tried to manually link the package, but it crashes with the same error.

Environment: React native version: 0.63.3 Device android version: any (the app crashes on the point of building, before any code is injected on the device)

JonathasLopes commented 3 years ago

I have the same problem .. did you get anything to solve this problem?

MinaSamir11 commented 3 years ago

@trtq @JonathasLopes Did you resolve the issue of not?

Try to add this in this path ( android/settings.gradle): include ':react-native-in-app-review' project(':react-native-in-app-review').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-in-app-review/android')