Home > OS >  Libary missing in Android Build?
Libary missing in Android Build?

Time:12-09

When I run my application in the emulator everything looks fine, if i run it on my phone, it's missing something.

I have copied a lot of code from a working app. What is missing?

Phone

I have added the following libaries to my gradle

implementation "androidx.drawerlayout:drawerlayout:1.1.1"
implementation "androidx.gridlayout:gridlayout:1.0.0"
implementation "androidx.recyclerview:recyclerview:1.2.1"
implementation "androidx.cardview:cardview:1.0.0"
implementation "androidx.navigation:navigation-fragment-ktx:2.5.3"
implementation "androidx.appcompat:appcompat-resources:1.5.1"

this did not solve the problem

Edit: I don't know what is missing if it is a lib or something else. As you can see on the srceenshot there is no text in the menubar, in the emulator there is. The Actionbar is not displayed correctly, in the emulator it is. You can't see it on the screenshot, but there is no spinner, in the emulator there is. The Card's do not display any text, in the emulator they are. If you click on card the text, which is bound the same way, is displayed.

CodePudding user response:

I found the "problem", i had the dark mode on on my phone. After turning this off it worked.

Do you guys know what should be used for dark mode?

  • Related