Skip to content

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

Description

@se-rg-os

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions