Skip to content

Cannot make cordova-plugin-intercom work #8

@jpfortin

Description

@jpfortin

Hi!
I receive the following error when trying to build or run my app. I followed all the instructions, got the message your plugin was installed successfully using both methods, followed instructions in the Troubleshooting section and downgraded npm.

Thanks for helping!

test-jack$ tns build android

Copying template files...
Platform android successfully added. v4.2.0
Executing before-prepare hook from /Users/jack/sources/test-jack/hooks/before-prepare/nativescript-cordova-support.js
Creating temporary Cordova project in /var/folders/jj/wgl0g4_x3mgf6xcmw_751scm0000gn/T/cordova-project119427-18623-o7y73j.ytdii/myProject...
Creating a new cordova project.
Using cordova-fetch for cordova-android@~7.1.1
Adding android project...
Creating Cordova project for the Android platform:
        Path: platforms/android
        Package: zzz123zzz.zzz123zzz.zzz123zzz
        Name: HelloCordova
        Activity: MainActivity
        Android target: android-27
Android project created with cordova-android@7.1.4
Android Studio project detected
Android Studio project detected
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Installing "cordova-plugin-whitelist" for android

This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
          
Adding cordova-plugin-whitelist to package.json
Saved plugin info for "cordova-plugin-whitelist" to config.xml
--save flag or autosave detected
Saving android@~7.1.4 into config.xml file ...
Adding plugin cordova-plugin-intercom...
Installing "cordova-plugin-intercom" for android
Android Studio project detected
Subproject Path: CordovaLib
Subproject Path: app
Adding cordova-plugin-intercom to package.json
Saved plugin info for "cordova-plugin-intercom" to config.xml
Running 'cordova prepare android'...
Android Studio project detected
Cannot read property 'attrib' of null
Execution of command 'node /Users/jack/sources/test-jack/node_modules/cordova/bin/cordova prepare android' failed.

stdout:

null



stderr:

null
test-jack jack$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions