Comments (7)
That can be the solution.
Here's what the doc say.
Providing the best device compatibility with resources
...
Likewise, if you provide different layout resources based on the screen orientation, you should pick one orientation as your default. For example, instead of providing layout resources in layout-land/ for landscape and layout-port/ for portrait, leave one as the default, such as layout/ for landscape and layout-port/ for portrait.
from generator-rn-toolbox.
since I upgraded Android Studio I have the same problem :-(
To solve also I have inserted in build.gradle:
lintOptions{
disable 'MissingDefaultResource'
}
Is this sufficient, or will there be problems with the App?
Thanks!
from generator-rn-toolbox.
How can I locate a "declaration in the base folder"?
I triggered this issue by renaming a layout (activity_display to activity_displayFriend) using Refactor->Rename...; apparently that didn't adjust the "base folder". I don't want to silence the lint error, because it flags a real problem, as @acatalina reported.
from generator-rn-toolbox.
I tried disabling and the app crashes on starts because it cannot find the resource :( did you find a different workaround?
from generator-rn-toolbox.
+1, wondering which devices this will cause launch crashes on
from generator-rn-toolbox.
Made a drawable-xxx with the image inside and things are working again. Maybe the tool should do the same?
from generator-rn-toolbox.
The MissingDefaultResource error is obtusely named. The real issue is that resource file names, *.xml, cannot contain upper case letters. That is in contrast to Java files, where mixed case is typical, e.g., MainActivity.java.
from generator-rn-toolbox.
Related Issues (20)
- "force" param for asset generator HOT 1
- Support for ic_launcher_round HOT 5
- create splashscreen based on icon HOT 1
- Support Android O adaptative icon HOT 1
- Add support for non square images HOT 1
- Yo throw new TypeError HOT 1
- consider using hygen to manage templates
- getPixelColor script not actually cropping before identify
- Icons are not created but no error? HOT 2
- yo rn-toolbox icon and splash cant replace files HOT 1
- yo rn-toolbox:assets command hangs HOT 2
- gitlab ci generator HOT 1
- Advanced Base Does Not Work HOT 1
- Error: Cannot find module 'universal-analytics' HOT 5
- Opt-Out of Analytics
- Commits with quotations fail
- issue
- Command failed: identify: fV can't get cache 0 @ error/fx.c/ExecuteRPN/3639 HOT 9
- Error: Could not execute GraphicsMagick/ImageMagick
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generator-rn-toolbox.