Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile with android 10.0.0 #283

Open
colbytown opened this issue Nov 17, 2021 · 11 comments
Open

Cannot compile with android 10.0.0 #283

colbytown opened this issue Nov 17, 2021 · 11 comments

Comments

@colbytown
Copy link

colbytown commented Nov 17, 2021

Cannot compile when using [email protected]. I had to upgrade because google play is now requiring we target at least API level 30.

If I uninstall both @ionic-native/printer and cordova-plugin-printer it compiles fine, so this is definitely the culprit.

Below are all the errors that show when running ionic cordova build android --prod --release.

ionic cordova build ios --prod works fine.

Task :app:compileReleaseJavaWithJavac FAILED
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintAdapter.java:31: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintAdapter.java:32: error: package android.support.v4.print does not exist
import android.support.v4.print.PrintHelper;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintAdapter.java:56: error: package PrintHelper does not exist
private final @nonnull PrintHelper.OnPrintFinishCallback callback;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintAdapter.java:68: error: package PrintHelper does not exist
@nonnull PrintHelper.OnPrintFinishCallback callback)
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintProxy.java:30: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintProxy.java:31: error: package android.support.v4.print does not exist
import android.support.v4.print.PrintHelper;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintProxy.java:42: error: package PrintHelper does not exist
private final @nonnull PrintHelper.OnPrintFinishCallback callback;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintProxy.java:51: error: package PrintHelper does not exist
@nonnull PrintHelper.OnPrintFinishCallback callback)
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintOptions.java:25: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintOptions.java:26: error: package android.support.v4.print does not exist
import android.support.v4.print.PrintHelper;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintOptions.java:38: error: package android.support.v4.print does not exist
import static android.support.v4.print.PrintHelper.ORIENTATION_LANDSCAPE;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintOptions.java:38: error: static import only from classes and interfaces
import static android.support.v4.print.PrintHelper.ORIENTATION_LANDSCAPE;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintOptions.java:39: error: package android.support.v4.print does not exist
import static android.support.v4.print.PrintHelper.ORIENTATION_PORTRAIT;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintOptions.java:39: error: static import only from classes and interfaces
import static android.support.v4.print.PrintHelper.ORIENTATION_PORTRAIT;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintOptions.java:40: error: package android.support.v4.print does not exist
import static android.support.v4.print.PrintHelper.SCALE_MODE_FILL;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintOptions.java:40: error: static import only from classes and interfaces
import static android.support.v4.print.PrintHelper.SCALE_MODE_FILL;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintOptions.java:41: error: package android.support.v4.print does not exist
import static android.support.v4.print.PrintHelper.SCALE_MODE_FIT;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintOptions.java:41: error: static import only from classes and interfaces
import static android.support.v4.print.PrintHelper.SCALE_MODE_FIT;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintOptions.java:145: error: cannot find symbol
void decoratePrintHelper (@nonnull PrintHelper printer)
^
symbol: class PrintHelper
location: class de.appplant.cordova.plugin.printer.PrintOptions
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintContent.java:27: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintContent.java:28: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:29: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:30: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintManager.java:30: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintManager.java:31: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintManager.java:32: error: package android.support.v4.print does not exist
import android.support.v4.print.PrintHelper;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/Printer.java:24: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/Printer.java:25: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
^
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintAdapter.java:47: error: cannot find symbol
private final @nonnull String jobName;
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintAdapter
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintAdapter.java:53: error: cannot find symbol
private final @nonnull InputStream input;
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintAdapter
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintAdapter.java:56: error: cannot find symbol
private final @nonnull PrintHelper.OnPrintFinishCallback callback;
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintAdapter
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintAdapter.java:66: error: cannot find symbol
PrintAdapter (@nonnull String jobName, int pageCount,
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintAdapter
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintAdapter.java:67: error: cannot find symbol
@nonnull InputStream input,
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintAdapter
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintAdapter.java:68: error: cannot find symbol
@nonnull PrintHelper.OnPrintFinishCallback callback)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintAdapter
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintProxy.java:39: error: cannot find symbol
private final @nonnull PrintDocumentAdapter delegate;
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintProxy
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintProxy.java:42: error: cannot find symbol
private final @nonnull PrintHelper.OnPrintFinishCallback callback;
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintProxy
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintProxy.java:50: error: cannot find symbol
PrintProxy (@nonnull PrintDocumentAdapter adapter,
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintProxy
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintProxy.java:51: error: cannot find symbol
@nonnull PrintHelper.OnPrintFinishCallback callback)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintProxy
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintOptions.java:49: error: cannot find symbol
private final @nonnull JSONObject spec;
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintOptions
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintOptions.java:56: error: cannot find symbol
PrintOptions (@nonnull JSONObject spec)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintOptions
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintOptions.java:64: error: cannot find symbol
@nonnull String getJobName()
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintOptions
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintOptions.java:89: error: cannot find symbol
@nonnull PrintAttributes toPrintAttributes()
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintOptions
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintOptions.java:145: error: cannot find symbol
void decoratePrintHelper (@nonnull PrintHelper printer)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintOptions
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintContent.java:44: error: cannot find symbol
private final @nonnull PrintIO io;
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintContent
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintContent.java:51: error: cannot find symbol
private PrintContent (@nonnull Context ctx) {
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintContent
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintContent.java:63: error: cannot find symbol
static ContentType getContentType (@nullable String path,
^
symbol: class Nullable
location: class de.appplant.cordova.plugin.printer.PrintContent
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintContent.java:64: error: cannot find symbol
@nonnull Context context)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintContent
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintContent.java:62: error: cannot find symbol
@nonnull
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintContent
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintContent.java:77: error: cannot find symbol
private ContentType getContentType (@nullable String path)
^
symbol: class Nullable
location: class de.appplant.cordova.plugin.printer.PrintContent
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintContent.java:76: error: cannot find symbol
@nonnull
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintContent
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintContent.java:136: error: cannot find symbol
static BufferedInputStream open (@nonnull String path,
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintContent
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintContent.java:137: error: cannot find symbol
@nonnull Context context)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintContent
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintContent.java:135: error: cannot find symbol
@nullable
^
symbol: class Nullable
location: class de.appplant.cordova.plugin.printer.PrintContent
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintContent.java:150: error: cannot find symbol
private BufferedInputStream open (@nonnull String path)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintContent
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintContent.java:149: error: cannot find symbol
@nullable
^
symbol: class Nullable
location: class de.appplant.cordova.plugin.printer.PrintContent
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintContent.java:183: error: cannot find symbol
static Bitmap decode (@nonnull String path, @nonnull Context context)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintContent
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintContent.java:183: error: cannot find symbol
static Bitmap decode (@nonnull String path, @nonnull Context context)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintContent
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintContent.java:182: error: cannot find symbol
@nullable
^
symbol: class Nullable
location: class de.appplant.cordova.plugin.printer.PrintContent
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintContent.java:196: error: cannot find symbol
private Bitmap decode (@nonnull String path)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintContent
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintContent.java:195: error: cannot find symbol
@nullable
^
symbol: class Nullable
location: class de.appplant.cordova.plugin.printer.PrintContent
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:47: error: cannot find symbol
private final @nonnull Context context;
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintIO
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:54: error: cannot find symbol
PrintIO (@nonnull Context ctx)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintIO
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:68: error: cannot find symbol
static void copy (@nonnull InputStream input,
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintIO
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:69: error: cannot find symbol
@nonnull OutputStream output) throws IOException
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintIO
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:90: error: cannot find symbol
static void close (@nonnull Closeable stream)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintIO
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:107: error: cannot find symbol
InputStream openFile (@nonnull String path)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintIO
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:106: error: cannot find symbol
@nullable
^
symbol: class Nullable
location: class de.appplant.cordova.plugin.printer.PrintIO
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:126: error: cannot find symbol
Bitmap decodeFile (@nonnull String path)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintIO
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:125: error: cannot find symbol
@nullable
^
symbol: class Nullable
location: class de.appplant.cordova.plugin.printer.PrintIO
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:141: error: cannot find symbol
InputStream openAsset (@nonnull String path)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintIO
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:140: error: cannot find symbol
@nullable
^
symbol: class Nullable
location: class de.appplant.cordova.plugin.printer.PrintIO
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:160: error: cannot find symbol
Bitmap decodeAsset (@nonnull String path)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintIO
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:159: error: cannot find symbol
@nullable
^
symbol: class Nullable
location: class de.appplant.cordova.plugin.printer.PrintIO
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:182: error: cannot find symbol
InputStream openResource (@nonnull String path)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintIO
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:181: error: cannot find symbol
@nonnull
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintIO
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:198: error: cannot find symbol
Bitmap decodeResource (@nonnull String path)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintIO
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:197: error: cannot find symbol
@nullable
^
symbol: class Nullable
location: class de.appplant.cordova.plugin.printer.PrintIO
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:214: error: cannot find symbol
InputStream openBase64 (@nonnull String path)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintIO
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:213: error: cannot find symbol
@nonnull
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintIO
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:230: error: cannot find symbol
Bitmap decodeBase64 (@nonnull String path)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintIO
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:229: error: cannot find symbol
@nullable
^
symbol: class Nullable
location: class de.appplant.cordova.plugin.printer.PrintIO
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintIO.java:243: error: cannot find symbol
private int getResId (@nonnull String resPath)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintIO
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintManager.java:54: error: cannot find symbol
private final @nonnull Context context;
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintManager
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintManager.java:57: error: cannot find symbol
private @nullable WebView view;
^
symbol: class Nullable
location: class de.appplant.cordova.plugin.printer.PrintManager
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintManager.java:64: error: cannot find symbol
PrintManager (@nonnull Context context)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintManager
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintManager.java:76: error: cannot find symbol
boolean canPrintItem (@nullable String item)
^
symbol: class Nullable
location: class de.appplant.cordova.plugin.printer.PrintManager
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintManager.java:91: error: cannot find symbol
@nonnull
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintManager
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintManager.java:117: error: cannot find symbol
void print (@nullable String content, @nonnull JSONObject settings,
^
symbol: class Nullable
location: class de.appplant.cordova.plugin.printer.PrintManager
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintManager.java:117: error: cannot find symbol
void print (@nullable String content, @nonnull JSONObject settings,
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintManager
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintManager.java:118: error: cannot find symbol
@nonnull WebView view, @nonnull OnPrintFinishCallback callback)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintManager
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintManager.java:118: error: cannot find symbol
@nonnull WebView view, @nonnull OnPrintFinishCallback callback)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintManager
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintManager.java:149: error: cannot find symbol
private void printHtml (@nullable String content,
^
symbol: class Nullable
location: class de.appplant.cordova.plugin.printer.PrintManager
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintManager.java:150: error: cannot find symbol
@nonnull JSONObject settings,
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintManager
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintManager.java:151: error: cannot find symbol
@nonnull OnPrintFinishCallback callback)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintManager
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintManager.java:163: error: cannot find symbol
private void printText (@nullable String content,
^
symbol: class Nullable
location: class de.appplant.cordova.plugin.printer.PrintManager
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintManager.java:164: error: cannot find symbol
@nonnull JSONObject settings,
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintManager
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintManager.java:165: error: cannot find symbol
@nonnull OnPrintFinishCallback callback)
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintManager
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintManager.java:178: error: cannot find symbol
private void printContent (@nullable String content, @nonnull String mimeType,
^
symbol: class Nullable
location: class de.appplant.cordova.plugin.printer.PrintManager
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintManager.java:178: error: cannot find symbol
private void printContent (@nullable String content, @nonnull String mimeType,
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintManager
/platforms/android/app/src/main/java/de/appplant/cordova/plugin/printer/PrintManager.java:179: error: cannot find symbol
@nonnull JSONObject settings,
^
symbol: class NonNull
location: class de.appplant.cordova.plugin.printer.PrintManager

@srinidhirao
Copy link

Any update on this? Currently we have a customer project which is using this plugin. With the latest Cordova-android update, we want to get this working.

Any pointers how one can update the project to link with latest cordova-android?

Srinidhi

@carlosg-ordering
Copy link

Same issue here, Any workaround to this issue?

@cdipierr
Copy link

cdipierr commented Dec 1, 2021

Hi all, please see a commit I've posted to our repo to resolve this:
mi-corporation@091a9b5

This is working for me, but I assume breaks building pre-AndroidX. Would be curious if it works for others.

@baande03
Copy link

@cdipierr - your updates worked for me. Saved me a ton of time, thanks a lot!

@hburrows
Copy link

Encountered the same compilation issues after upgrading to [email protected] to meet Google's minimum API requirement. An update to fix the Android 10 issues would be great per @cdipierr's fork which worked perfectly.

@anees-synavos
Copy link

did you find any solution ?

@jainpiyus
Copy link

any solution for this ?

@blazekyo
Copy link

blazekyo commented Nov 7, 2022

Hi all, please see a commit I've posted to our repo to resolve this: mi-corporation@091a9b5

This is working for me, but I assume breaks building pre-AndroidX. Would be curious if it works for others.

I've created a node js script to automate the package naming update.
Just paste it into the ionic project folder (just outside the android folder), then run node scriptFileName.js.

link to download script: https://file.io/TcAqlf9D0WiS

@JeramieHallyburton
Copy link

You can run "npx jetify" to rename packages to AndroidX

@Ashish117
Copy link

You can use cordova-plugin-androidx-adapter it will replace any legacy Support Library references.

@it-steiger
Copy link

You can use cordova-plugin-androidx-adapter it will replace any legacy Support Library references.

Thanks a lot !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests