You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/03/13 14:41:03 UTC

[GitHub] [cordova-plugin-splashscreen] BorntraegerMarc opened a new issue #185: Build errors about drawable since upgrading to cordova-android 8.0.0

BorntraegerMarc opened a new issue #185: Build errors about drawable since upgrading to cordova-android 8.0.0
URL: https://github.com/apache/cordova-plugin-splashscreen/issues/185
 
 
   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   Building a cordova app with `ionic cordova build android --prod --release` does not throw errors.
   
   
   ### What does actually happen?
   I see this error in the console:
   ```
   /platforms/android/app/src/main/res/drawable-land-hdpi/screen.png: Error: The drawable "screen" in drawable-land-hdpi has no declaration in the base drawable folder or in a drawable-densitydpi folder; this can lead to crashes when the drawable is queried in a configuration that does not match this qualifier [MissingDefaultResource]
   ```
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   This error was not present in v7.X
   
   I do specify a splash screen in `config.xml` like so: `<splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />`
   
   And it gets displayed correctly (according to my tests so far)
   
   I'm using this plugin to configure the splash screens: https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-splashscreen/
   
   I only included 1 example of the errors I'm getting to keep the bug report small. But I get it for different screen sizes & densities.
   
   I understand that it has something to do with android linting rules: http://tools.android.com/tips/lint-checks
   
   But I don't fully understand if it's a misconfiguration in the plugin or if cordova-android needs to do something differently.
   
   PS: I also posted a bug here https://github.com/apache/cordova-android/issues/689 because I'm not sure where the problem is (if in the plugin or cordova-android).
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   `ionic cordova build android --prod --release`
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   On all. It happens on build time.
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   ```
   ~/Documents/komed/komed-frontend$ ionic info
   
   Ionic:
   
      ionic (Ionic CLI)  : 4.11.0 (/Users/borntsch/.nvm/versions/node/v8.13.0/lib/node_modules/ionic)
      Ionic Framework    : ionic-angular 3.9.2
      @ionic/app-scripts : 3.2.3
   
   Cordova:
   
      cordova (Cordova CLI) : 8.0.0
      Cordova Platforms     : android 8.0.0, browser 5.0.4, ios 5.0.0
      Cordova Plugins       : cordova-plugin-ionic-webview 2.3.1, (and 27 other plugins)
   
   System:
   
      Android SDK Tools : 26.1.1 (/Users/borntsch/Library/Android/sdk)
      ios-deploy        : 1.9.2
      ios-sim           : 7.0.0
      NodeJS            : v8.13.0 (/Users/borntsch/.nvm/versions/node/v8.13.0/bin/node)
      npm               : 6.4.1
      OS                : macOS Mojave
      Xcode             : Xcode 10.1 Build version 10B61
   ```
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [X] I searched for existing GitHub issues
   - [X] I updated all Cordova tooling to most recent version
   - [X] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org