this.printer.isAvailable().then(
(onSuccess: any) => {
console.log(onSuccess);
let content = document.getElementById(‘print’)?.innerHTML;
let options: PrintOptions = {
name: ‘MyDocument’,
duplex: true,
orientation: ‘portrait’,
monochrome: true,
};
this.printer.print(content, options).then(
(value: any) => {
console.log(‘value:’, value);
},
(error) => {
console.log(‘eror:’, error);
}
);
error: package androidx.v4.print does not exist
import androidx.v4.print.PrintHelper;
When i am try to build the app