Printooth icon indicating copy to clipboard operation
Printooth copied to clipboard

Error in ScanningActivity

Open RaRoPe opened this issue 5 years ago • 1 comments

With the migration to androidx, the lib must be imported in build.gradle (:app):

implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'

Because, the Android Studio get this error: [+] android.view.InflateException: Binary XML file line #15: Error inflating class androidx.swiperefreshlayout.widget.SwipeRefreshLayout. [+] java.lang.ClassNotFoundException: Didn't find class "androidx.swiperefreshlayout.widget.SwipeRefreshLayout"

So, as in ScanningActivity.kt don't have this import: import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;

We have to import that in our gradle file =D

RaRoPe avatar Oct 20 '20 15:10 RaRoPe

add this implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'

ahmedelbagory332 avatar Oct 22 '20 18:10 ahmedelbagory332