AppRate-for-Android icon indicating copy to clipboard operation
AppRate-for-Android copied to clipboard

java.lang.NoClassDefFoundError: com.enrique.mymodule.app.R$string

Open sergii-frost opened this issue 11 years ago • 5 comments

Hi, guys, I am willing to add your component to my Android project using Android Studio and gradle. After adding it directly as a dependency in gradle file like:

compile 'com.github.kikoso:AppRate-Android:1.0-RELEASE'

my project successfully compiles and I can import AppRater in my Application class. But as soon as I try to create new AppRater(getApplicationContext()) and run app I am receiving error like:

com.application.appratertest E/AndroidRuntime﹕ FATAL EXCEPTION: main
    Process: com.application.appratertest, PID: 30907
    java.lang.NoClassDefFoundError: com.enrique.mymodule.app.R$string
            at com.enrique.apprater.AppRater.showRateDialog(AppRater.java:57)
            at com.enrique.apprater.AppRater.init(AppRater.java:47)

Can you please provide some instructions of how I can add AppRater properly when using Android Studio and gradle ? Thank you!

sergii-frost avatar Oct 18 '14 10:10 sergii-frost

I've got the same problem here.

melbic avatar Oct 22 '14 16:10 melbic

Same here

mzander avatar Nov 11 '14 21:11 mzander

same here

ahmedoid avatar Nov 14 '14 18:11 ahmedoid

same here

claudsan avatar Jan 22 '16 02:01 claudsan

same to me

Maddumage avatar Jan 30 '17 03:01 Maddumage