Giter Club home page Giter Club logo

Comments (7)

jjchula avatar jjchula commented on May 26, 2024 4

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.

nobady90 avatar nobady90 commented on May 26, 2024 2

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.

Quiigi avatar Quiigi commented on May 26, 2024 1

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.

acatalina avatar acatalina commented on May 26, 2024

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.

1pocketaces1 avatar 1pocketaces1 commented on May 26, 2024

+1, wondering which devices this will cause launch crashes on

from generator-rn-toolbox.

thinklinux avatar thinklinux commented on May 26, 2024

Made a drawable-xxx with the image inside and things are working again. Maybe the tool should do the same?

from generator-rn-toolbox.

Quiigi avatar Quiigi commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.