Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

RadaeePDF AndroidStudio 3.54.1 1 week 5 days ago #15416

  • marshe
  • marshe's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
I've tried compiling the PDFSample project in Android Studio 4.1.2 and get the following error:

RadaeePDF-Android-3.54.1\RadaeePDF-Android\PDFSample\ViewLib\src\main\java\com\radaee\annotui\UILStyleButton.java:10: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;

There are a lot of other errors as well, e.g.

RadaeePDF-Android-3.54.1\RadaeePDF-Android\PDFSample\ViewLib\src\main\java\com\radaee\view\PDFViewPager.java:182: error: cannot find symbol
return super.onInterceptTouchEvent(ev);
^
symbol: variable super
location: class PDFViewPager

Could you please help? Thanks!

Please Log in or Create an account to join the conversation.

RadaeePDF AndroidStudio 3.54.1 1 week 5 days ago #15417

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1036
  • Karma: 43
  • Thank you received: 60
maybe you are using AndroidX

import android.support.annotation
shall be changed to:
import androidx.annotation.Nullable;

and you can remove PDFViewPager.java and PDFPagerAct.java, if you are not using this class.
this feature can be removed.

Please Log in or Create an account to join the conversation.

Last edit: by radaee.

RadaeePDF AndroidStudio 3.54.1 1 week 5 days ago #15418

  • goldkyo
  • goldkyo's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 13
  • Karma: 1
  • Thank you received: 1
Hi,

This is a compatibility issue between Android and AndroidX. It's can be automatically fixed by adding following two flags (or set to true if already exists) in the gradle.properties file in your project:
android.useAndroidX=true
android.enableJetifier=true

Rebuild the project when you have done.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum