Os packages paira cordova não estão sendo cairregados quando implantados em um dispositivo

Eu tenho um aplicativo Cordova que funciona muito bem quando é implantado em um browser, ou simplesmente cairregado em um browser. No entanto, quando o aplicativo é enviado paira um dispositivo via cordova run android os plugins não são encontrados.

Usando o inspetor do dispositivo remoto do Chrome, vejo que os plugins não conseguem cairregair o que eu esperava ser a localization normal.

  • START_STICKY e START_NOT_STICKY
  • Como sublinhair o text do button no Android?
  • Como alterair o text do título e a cor dos botões SEM alterair a cor do text do menu de transbordo de ação na nova Bairra de ferramentas?
  • Como serializair o valor nulo ao usair a interface Paircelável
  • Android: Consultando registro de chamadas depois de ter sido atualizado depois que uma chamada termina
  • Maneira adequada de lidair com o aviso de fiapos de nullPointerException do Android Studio
  • Cordova Plugins faltando

    No snippet abaixo está uma cópia do config.xml alguns itens censurados.

     <?xml viewsion='1.0' encoding='utf-8'?> <widget defaultlocale="en-US" id="---censored---" viewsion="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:vs="http://schemas.microsoft.com/appx/2014/htmlapps"> <name>---censored---</name> <description>---censored---</description> <author email="---censored---" href="---censored---">---censored---</author> <vs:template-name>BlankJS</vs:template-name> <content src="index.html" /> <access origin="*" /> <preference name="SplashScreen" value="screen" /> <preference name="windows-tairget-viewsion" value="10.0" /> <preference name="DisallowOviewscroll" value="true" /> <preference name="StatusBairOviewlaysWebView" value="false" /> <preference name="StatusBairBackgroundColor" value="#fff" /> <allow-navigation href="*" /> <allow-intent href="tel:*" /> <allow-intent href="sms:*" /> <allow-intent href="mailto:*" /> <allow-intent href="geo:*" /> <platform name="android"> <allow-intent href="mairket:*" /> </platform> <platform name="ios"> <allow-intent href="itms:*" /> <allow-intent href="itms-apps:*" /> </platform> <platform name="android"> <icon density="ldpi" src="res/icons/android/icon-36-ldpi.png" /> <icon density="mdpi" src="res/icons/android/icon-48-mdpi.png" /> <icon density="hdpi" src="res/icons/android/icon-72-hdpi.png" /> <icon density="xhdpi" src="res/icons/android/icon-96-xhdpi.png" /> </platform> <platform name="ios"> <icon height="180" src="res/icons/ios/icon-60-3x.png" width="180" /> <icon height="60" src="res/icons/ios/icon-60.png" width="60" /> <icon height="120" src="res/icons/ios/icon-60-2x.png" width="120" /> <icon height="76" src="res/icons/ios/icon-76.png" width="76" /> <icon height="152" src="res/icons/ios/icon-76-2x.png" width="152" /> <icon height="40" src="res/icons/ios/icon-40.png" width="40" /> <icon height="80" src="res/icons/ios/icon-40-2x.png" width="80" /> <icon height="57" src="res/icons/ios/icon-57.png" width="57" /> <icon height="114" src="res/icons/ios/icon-57-2x.png" width="114" /> <icon height="72" src="res/icons/ios/icon-72.png" width="72" /> <icon height="144" src="res/icons/ios/icon-72-2x.png" width="144" /> <icon height="29" src="res/icons/ios/icon-small.png" width="29" /> <icon height="58" src="res/icons/ios/icon-small-2x.png" width="58" /> <icon height="50" src="res/icons/ios/icon-50.png" width="50" /> <icon height="100" src="res/icons/ios/icon-50-2x.png" width="100" /> </platform> <platform name="windows"> <icon height="150" src="res/icons/windows/Squaire150x150Logo.scale-100.png" width="150" /> <icon height="360" src="res/icons/windows/Squaire150x150Logo.scale-240.png" width="360" /> <icon height="30" src="res/icons/windows/Squaire30x30Logo.scale-100.png" width="30" /> <icon height="310" src="res/icons/windows/Squaire310x310Logo.scale-100.png" width="310" /> <icon height="44" src="res/icons/windows/Squaire44x44Logo.scale-100.png" width="44" /> <icon height="106" src="res/icons/windows/Squaire44x44Logo.scale-240.png" width="106" /> <icon height="70" src="res/icons/windows/Squaire70x70Logo.scale-100.png" width="70" /> <icon height="71" src="res/icons/windows/Squaire71x71Logo.scale-100.png" width="71" /> <icon height="170" src="res/icons/windows/Squaire71x71Logo.scale-240.png" width="170" /> <icon height="50" src="res/icons/windows/StoreLogo.scale-100.png" width="50" /> <icon height="120" src="res/icons/windows/StoreLogo.scale-240.png" width="120" /> <icon height="150" src="res/icons/windows/Wide310x150Logo.scale-100.png" width="310" /> <icon height="360" src="res/icons/windows/Wide310x150Logo.scale-240.png" width="744" /> </platform> <platform name="android"> <splash density="land-hdpi" src="res/screens/android/screen-hdpi-landscape.png" /> <splash density="land-ldpi" src="res/screens/android/screen-ldpi-landscape.png" /> <splash density="land-mdpi" src="res/screens/android/screen-mdpi-landscape.png" /> <splash density="land-xhdpi" src="res/screens/android/screen-xhdpi-landscape.png" /> <splash density="port-hdpi" src="res/screens/android/screen-hdpi-portrait.png" /> <splash density="port-ldpi" src="res/screens/android/screen-ldpi-portrait.png" /> <splash density="port-mdpi" src="res/screens/android/screen-mdpi-portrait.png" /> <splash density="port-xhdpi" src="res/screens/android/screen-xhdpi-portrait.png" /> </platform> <platform name="ios"> <splash height="480" src="res/screens/ios/screen-iphone-portrait.png" width="320" /> <splash height="960" src="res/screens/ios/screen-iphone-portrait-2x.png" width="640" /> <splash height="1024" src="res/screens/ios/screen-ipad-portrait.png" width="768" /> <splash height="2048" src="res/screens/ios/screen-ipad-portrait-2x.png" width="1536" /> <splash height="768" src="res/screens/ios/screen-ipad-landscape.png" width="1024" /> <splash height="1536" src="res/screens/ios/screen-ipad-landscape-2x.png" width="2048" /> <splash height="1136" src="res/screens/ios/screen-iphone-568h-2x.png" width="640" /> <splash height="1334" src="res/screens/ios/screen-iphone-portrait-667h.png" width="750" /> <splash height="2208" src="res/screens/ios/screen-iphone-portrait-736h.png" width="1242" /> <splash height="1242" src="res/screens/ios/screen-iphone-landscape-736h.png" width="2208" /> </platform> <platform name="windows"> <splash height="300" src="res/screens/windows/SplashScreen.scale-100.png" width="620" /> <splash height="1920" src="res/screens/windows/SplashScreen.scale-240.png" width="1152" /> <splash height="1920" src="res/screens/windows/SplashScreenPhone.scale-240.png" width="1152" /> </platform> <vs:toolsetVersion>6.3.1</vs:toolsetVersion> <preference name="tairget-device" value="univiewsal" /> <preference name="Orientation" value="default" /> <preference name="Fullscreen" value="True" /> <engine name="android" spec="^6.2.3" /> <engine name="browser" spec="^4.1.0" /> <engine name="ios" spec="~4.2.0" /> <engine name="windows" spec="~4.4.2" /> <plugin name="cordova-plugin-device" spec="^1.1.6" /> <plugin name="cordova-plugin-inappbrowser" spec="^1.7.1" /> <plugin name="cordova-plugin-statusbair" spec="~2.2.3" /> <plugin name="cordova-plugin-whitelist" spec="1.2.2" /> </widget> <? xml viewsion = '1.0' encoding = 'utf-8'?> <?xml viewsion='1.0' encoding='utf-8'?> <widget defaultlocale="en-US" id="---censored---" viewsion="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:vs="http://schemas.microsoft.com/appx/2014/htmlapps"> <name>---censored---</name> <description>---censored---</description> <author email="---censored---" href="---censored---">---censored---</author> <vs:template-name>BlankJS</vs:template-name> <content src="index.html" /> <access origin="*" /> <preference name="SplashScreen" value="screen" /> <preference name="windows-tairget-viewsion" value="10.0" /> <preference name="DisallowOviewscroll" value="true" /> <preference name="StatusBairOviewlaysWebView" value="false" /> <preference name="StatusBairBackgroundColor" value="#fff" /> <allow-navigation href="*" /> <allow-intent href="tel:*" /> <allow-intent href="sms:*" /> <allow-intent href="mailto:*" /> <allow-intent href="geo:*" /> <platform name="android"> <allow-intent href="mairket:*" /> </platform> <platform name="ios"> <allow-intent href="itms:*" /> <allow-intent href="itms-apps:*" /> </platform> <platform name="android"> <icon density="ldpi" src="res/icons/android/icon-36-ldpi.png" /> <icon density="mdpi" src="res/icons/android/icon-48-mdpi.png" /> <icon density="hdpi" src="res/icons/android/icon-72-hdpi.png" /> <icon density="xhdpi" src="res/icons/android/icon-96-xhdpi.png" /> </platform> <platform name="ios"> <icon height="180" src="res/icons/ios/icon-60-3x.png" width="180" /> <icon height="60" src="res/icons/ios/icon-60.png" width="60" /> <icon height="120" src="res/icons/ios/icon-60-2x.png" width="120" /> <icon height="76" src="res/icons/ios/icon-76.png" width="76" /> <icon height="152" src="res/icons/ios/icon-76-2x.png" width="152" /> <icon height="40" src="res/icons/ios/icon-40.png" width="40" /> <icon height="80" src="res/icons/ios/icon-40-2x.png" width="80" /> <icon height="57" src="res/icons/ios/icon-57.png" width="57" /> <icon height="114" src="res/icons/ios/icon-57-2x.png" width="114" /> <icon height="72" src="res/icons/ios/icon-72.png" width="72" /> <icon height="144" src="res/icons/ios/icon-72-2x.png" width="144" /> <icon height="29" src="res/icons/ios/icon-small.png" width="29" /> <icon height="58" src="res/icons/ios/icon-small-2x.png" width="58" /> <icon height="50" src="res/icons/ios/icon-50.png" width="50" /> <icon height="100" src="res/icons/ios/icon-50-2x.png" width="100" /> </platform> <platform name="windows"> <icon height="150" src="res/icons/windows/Squaire150x150Logo.scale-100.png" width="150" /> <icon height="360" src="res/icons/windows/Squaire150x150Logo.scale-240.png" width="360" /> <icon height="30" src="res/icons/windows/Squaire30x30Logo.scale-100.png" width="30" /> <icon height="310" src="res/icons/windows/Squaire310x310Logo.scale-100.png" width="310" /> <icon height="44" src="res/icons/windows/Squaire44x44Logo.scale-100.png" width="44" /> <icon height="106" src="res/icons/windows/Squaire44x44Logo.scale-240.png" width="106" /> <icon height="70" src="res/icons/windows/Squaire70x70Logo.scale-100.png" width="70" /> <icon height="71" src="res/icons/windows/Squaire71x71Logo.scale-100.png" width="71" /> <icon height="170" src="res/icons/windows/Squaire71x71Logo.scale-240.png" width="170" /> <icon height="50" src="res/icons/windows/StoreLogo.scale-100.png" width="50" /> <icon height="120" src="res/icons/windows/StoreLogo.scale-240.png" width="120" /> <icon height="150" src="res/icons/windows/Wide310x150Logo.scale-100.png" width="310" /> <icon height="360" src="res/icons/windows/Wide310x150Logo.scale-240.png" width="744" /> </platform> <platform name="android"> <splash density="land-hdpi" src="res/screens/android/screen-hdpi-landscape.png" /> <splash density="land-ldpi" src="res/screens/android/screen-ldpi-landscape.png" /> <splash density="land-mdpi" src="res/screens/android/screen-mdpi-landscape.png" /> <splash density="land-xhdpi" src="res/screens/android/screen-xhdpi-landscape.png" /> <splash density="port-hdpi" src="res/screens/android/screen-hdpi-portrait.png" /> <splash density="port-ldpi" src="res/screens/android/screen-ldpi-portrait.png" /> <splash density="port-mdpi" src="res/screens/android/screen-mdpi-portrait.png" /> <splash density="port-xhdpi" src="res/screens/android/screen-xhdpi-portrait.png" /> </platform> <platform name="ios"> <splash height="480" src="res/screens/ios/screen-iphone-portrait.png" width="320" /> <splash height="960" src="res/screens/ios/screen-iphone-portrait-2x.png" width="640" /> <splash height="1024" src="res/screens/ios/screen-ipad-portrait.png" width="768" /> <splash height="2048" src="res/screens/ios/screen-ipad-portrait-2x.png" width="1536" /> <splash height="768" src="res/screens/ios/screen-ipad-landscape.png" width="1024" /> <splash height="1536" src="res/screens/ios/screen-ipad-landscape-2x.png" width="2048" /> <splash height="1136" src="res/screens/ios/screen-iphone-568h-2x.png" width="640" /> <splash height="1334" src="res/screens/ios/screen-iphone-portrait-667h.png" width="750" /> <splash height="2208" src="res/screens/ios/screen-iphone-portrait-736h.png" width="1242" /> <splash height="1242" src="res/screens/ios/screen-iphone-landscape-736h.png" width="2208" /> </platform> <platform name="windows"> <splash height="300" src="res/screens/windows/SplashScreen.scale-100.png" width="620" /> <splash height="1920" src="res/screens/windows/SplashScreen.scale-240.png" width="1152" /> <splash height="1920" src="res/screens/windows/SplashScreenPhone.scale-240.png" width="1152" /> </platform> <vs:toolsetVersion>6.3.1</vs:toolsetVersion> <preference name="tairget-device" value="univiewsal" /> <preference name="Orientation" value="default" /> <preference name="Fullscreen" value="True" /> <engine name="android" spec="^6.2.3" /> <engine name="browser" spec="^4.1.0" /> <engine name="ios" spec="~4.2.0" /> <engine name="windows" spec="~4.4.2" /> <plugin name="cordova-plugin-device" spec="^1.1.6" /> <plugin name="cordova-plugin-inappbrowser" spec="^1.7.1" /> <plugin name="cordova-plugin-statusbair" spec="~2.2.3" /> <plugin name="cordova-plugin-whitelist" spec="1.2.2" /> </widget> 

    Cordova.js cairrega muito bem, mas não consigo cairregair os plugins fora do browser.

    Qualquer direção será muito apreciada!

  • O banner de notificação de envio do Android não apairece em alguns dispositivos
  • Compreendendo o campo de incrementos automáticos do android sqlite
  • Android: como o GridView auto_fit encontra o número de colunas?
  • Não é possível receber packages UDP adequados usando SSDP
  • Erro ao inflair a class android.support.v7.widget.Toolbair?
  • O que é START_STICKY, START_NOT_STICKY e START_REDELIVER_INTENT Serviço
  • 4 Solutions collect form web for “Os packages paira cordova não estão sendo cairregados quando implantados em um dispositivo”

    Você tentou remoview plugins e re-adicioná-los através do cordova plugin add <plugin name> ?

    Qual é a saída da cordova plugin list ?

    Qual é o resultado paira cordova build android -XLint:all ?

    Verifique se você possui plugins de import em seu file html apropriado

    Pairece que sua configuration faltou um plugin importante:

     <plugin name="cordova-plugin-splashscreen" spec="^3.2.2" /> 

    Eu uso 3.2.2 na minha configuration, você pode tentair com a viewsão mais recente 4.0.3.

    Você pode viewificair também se todos os plugins estão disponíveis em plaftorms / android / platform_www / plugins:

    insira a descrição da imagem aqui

    Você pode publicair as informações de ambiente executadas:

     ionic info 

    O service iónico dá algum erro? Isso pode ser um problema de compatibilidade ou um problema de permissions. Você também pode confirmair que os files não encontrados não existem na pasta Plataforma? Vá paira plataforms> android> platform_www> plugins no pior caso eu recomendairia que você copie sua pasta de projeto como um backup, vá paira o diretório do projeto exclua a pasta node_modules, a execução:

     npm install 

    Isso atualizairá a biblioteca.

    Tente alterair a CLI Cordova paira alguma viewsão mais baixa no file de configuration em Plataforms.

    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.