Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

RadaeePDF AndroidStudio 3.54.1

More
IP: 79.77.77.191 5 years 2 months ago #15416 by marshe
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!
More
IP: 111.196.245.20 5 years 2 months ago - 5 years 2 months ago #15417 by radaee
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.
Last edit: 5 years 2 months ago by radaee.
More
IP: 123.116.40.133 5 years 2 months ago #15418 by goldkyo
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.
Time to create page: 0.417 seconds
Powered by Kunena Forum