Skyost / RateMyApp

This plugin allows to kindly ask users to rate your app if custom conditions are met (eg. install time, number of launches, etc...).
https://pub.dev/packages/rate_my_app
MIT License
265 stars 104 forks source link

Could not resolve project :rate_my_app #134

Closed Noraiz322 closed 1 year ago

Noraiz322 commented 1 year ago

I was using this library since long time ago and it was working fine. I updated some of firebase libraries yesterday and after some time it started giving me following error regarding rate_my_app library. I could not understand what is the connection between these libraries. while commenting this library everything works fine at my end. Can you help me to resolve the following issue.

Skyost commented 1 year ago

Which version of the plugin are you using ? If it's the latest (2.0.0), make sure you're using Android Gradle Plugin v8 at least. In your build.gradle :

buildscript {
  // ...

  dependencies {
    classpath 'com.android.tools.build:gradle:8.0.1'
    // ...
  }
}

Also don't forget to add a namespace in the android section of app/build.gradle :

android {
  // ...
  namespace 'your.namespace'
}
Noraiz322 commented 1 year ago

I am using 'rate_my_app: ^1.1.3' and buildscript { // ...

dependencies { classpath 'com.android.tools.build:gradle:4.1.0' // ... } }

When I added the namespace for my project as you mentioned in app/build.gradle. Error is changed now and didn't get success yet. Here is the error:

Skyost commented 1 year ago

Well, if you're using 1.1.3, this doesn't apply to you. If you encountered this problem after upgrading other libraries, make sure to flutter clean before running.

Noraiz322 commented 1 year ago

I got it resolved by cache clearing and removing/adding library. Thanks for prompt reply. Really appreciable.

Skyost commented 1 year ago

Cool then :wink: