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

Error on cordova plugin add cordova-pdf-generator #132

Closed
jfoclpf opened this issue Jan 2, 2021 · 1 comment
Closed

Error on cordova plugin add cordova-pdf-generator #132

jfoclpf opened this issue Jan 2, 2021 · 1 comment

Comments

@jfoclpf
Copy link
Contributor

jfoclpf commented Jan 2, 2021

Just to let yo know that your plugin is throwing an error on cordova platform add android

$ cordova platform add android
Using cordova-fetch for cordova-android@^9.0.0
Adding android project...
Creating Cordova project for the Android platform:
        Path: platforms/android
        Package: com.form.parking.violation
        Name: Den_ncia_Estacionamento
        Activity: MainActivity
        Android target: android-29
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@9.0.0
Installing "cordova-pdf-generator" for android
Error during processing of action! Attempting to revert...
Failed to install 'cordova-pdf-generator': CordovaError: Uh oh!
"/home/joao_pimentel_ferreira/form-for-parking-violation/plugins/cordova-pdf-generator/src/android/PDFGenerator.java" not found!
    at copyFile (/home/joao_pimentel_ferreira/form-for-parking-violation/platforms/android/cordova/lib/pluginHandlers.js:207:36)
    at copyNewFile (/home/joao_pimentel_ferreira/form-for-parking-violation/platforms/android/cordova/lib/pluginHandlers.js:232:5)
    at install (/home/joao_pimentel_ferreira/form-for-parking-violation/platforms/android/cordova/lib/pluginHandlers.js:33:17)
    at ActionStack.process (/home/joao_pimentel_ferreira/form-for-parking-violation/platforms/android/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
    at PluginManager.doOperation (/home/joao_pimentel_ferreira/form-for-parking-violation/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:112:24)
    at PluginManager.addPlugin (/home/joao_pimentel_ferreira/form-for-parking-violation/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:142:21)
    at /home/joao_pimentel_ferreira/form-for-parking-violation/platforms/android/cordova/Api.js:159:78
Uh oh!
"/home/joao_pimentel_ferreira/form-for-parking-violation/plugins/cordova-pdf-generator/src/android/PDFGenerator.java" not found!

The same happens also on cordova plugin add cordova-pdf-generator

Apparently it has to do with this file: plugins/cordova-pdf-generator/src/android/PDFGenerator.java which is "not found"

@jfoclpf jfoclpf changed the title Error on platform add android Error on cordova plugin add cordova-pdf-generator Jan 2, 2021
@jfoclpf
Copy link
Contributor Author

jfoclpf commented Jan 3, 2021

my mistake

@jfoclpf jfoclpf closed this as completed Jan 3, 2021
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

1 participant