How I can understand where is the conflict in libraries version? - android

Suddenly after I start using constraintLayout I got an error. I know that error is because of support library version. And I have already checked two main answers on stack. But anyway I got a question:
Is it ok that it add library with another version by itself?
How can I fix that? I need to put each library from left to right side and give it needed version?
Do I need to change versions of each file or I just need to add implementations on the right side?
I need to change versions here?
Or add it here
Thats the error
I know about - Go and ready about Gradle - I am already doing that:) Thank you for your time guys!

Related

androidx.core:core-ktx:1.0.0 widget package missing

Recently Android team(mainly those guys actually) had introduced androidx.core:core-ktx:1.0.0.
I've added it to mine project :
implementation 'androidx.core:core-ktx:1.0.0'
Everything looks cool, despite few moments - I can't find the toast() method. After few minutes of research I've found that androidx.core.widget package isn't anymore present within the ktx lib. There is nothing about it mentioned inside Changelog file. That's kind of strange, cause it was there within androidx.core:core-ktx:1.0.0-alpha1 version.
BTW the same strange behaviour applies to com.google.android.material:material:1.0.0 where in beta01 I was able to use MaterialComponents-styles and in the release version Android Studio isn't able to resolve them.
As usual after few hours of playing with Android Studio(using diff lib versions and invalidating cache) things went back to normal. Problem with styles isn't valid anymore.
Soooo, the question is:
What was done? Do we have any up to date doc describing all relevant changes?
As this library was archived and partially moved to support, you can see in https://github.com/android/android-ktx/issues/143 that toast() is removed. So you can downgrade the library to androidx.core:core-ktx:1.0.0-alpha1 (beta01 or even 0.3).
I don't know, why this happened.
beta01 warns that toast() should be replaced with Toast.makeText(this, message, Toast.LENGTH_SHORT).show();.

ConstraintLayout doesn't match with the screen size

I just started my first Android Studio project and I already come with a problem :)
I search on google for the answer but didn't find my problem.
So I need your help please ^^
I download the last version of Android Studio, create a project with an Empty Activity and I came up with this
As you can see my ConstraintLayout is really small and I just can't work with this.
I didn't touch anything on the project. Just to be sure I create 3 projects that have the same issue and redownload 4 time Android Studio.
On the virtual Devices, it looks correct throw: Screenshot
I put the XML code just in case it can help
xmlcode
Hope I was clear and sorry for my English ;)
EDIT: For some reason, the constraint layout fit correctly on the watch screen, but I don't want to create a watch app x) screenshot_watchview
Ok so I have finally find the problem ! I'm so happy right now :D
The problem was the AppTheme theme that I use, I switch it with the DeviceDefault theme. I don't know why this theme was causing problem but now it work and I can finally work on my first Android App !
If you are using the supportLibrary 28+ then this thing happened to me too.
and when I change the support lib version to the 27, it works.
Maybe this is a possible bug in the support library 28+.
Changing the AppTheme works like a charm if you want to stick with the support library 28+ But if you still don't want to so Try using the support library below 28.

android material design issue

i am trying to solve a issue for last 1 week. i am not sure what is wrong with the code.
i am trying to use this library https://github.com/rudsonlive/NavigationDrawer-MaterialDesign
I can able to compile and run the code
the issue is ,there is big difference in the display quality
clearly we can notice the font is completely not matching.
please help me to resolve this.
You should use Android Design Support Library to achieve this.
It's quite easier and will surely fix your problem.
Check this official sample to learn how to use this:
https://github.com/chrisbanes/cheesesquare
Omg i cannot believe it. the actual problem with me is eclipse.
I use android design support library and all other needed libraries.
i only can manage to run the project but when i imported the project using android studio everything is working fine without any additional work.
dam it.
any one tired with eclipse ?

Xamarin Forms Android Error Message Regarding Support Package and other packages

I am a complete newbie who has just about started android app. development using Xamarin Forms and VS2012. Only about 20-21 days of exposure I have got. I am trying to learn along the way through writing an imaginary practice app. But there are some errors I am getting. You can see them in the picture.
http://imagebin.ca/v/29PeHoLhwW1i
Can someone direct me what exactly it is saying and what I need to do in order to rectify them?Is there something wrong with the installation/environment or like some update? Or is it something else? What's with the "unzipping failed" message?
Some one kindly help me out here please. Facing great deal of difficulty in tackling this.
Many Thanks in advance.
As the error message says (see the third error message ), you need to install the "Android Support Repository" from the Android SDK manager.
The errors are telling you that Xamarin is looking for the support library, but that it cannot find the support library and thus the build failed.
#Tanis.7x and #Jason.
Just an update I want to post:
I went about reproducing this scenario: creating a new project, do some primary simple code, add 1,2 layouts et all. When I build the new project, these 9 errors don't appear. This is strange to me. Because: this is exactly what had happened to my main work also. These errors were not there. Something, somewhere happened along the line, due to which they started appearing suddenly; out of the blue. I remember, I had updated Xamarin version, also just added some packages like JSON.Net and it is only after that this error list appeared. Not before that, if I remember correctly. Which is weird to me. If you try to recreate by creating a brand new project these 9 errors won't appear. I tried recreating this twice; no errors.
Yes, I'm manually downloading the zip file. Hopefully this makes the compiler happy. I'll keep posted about the updates.
Thanks All!

Bug in Inkfilepicker Android library

I'm using your Android library for an implementation of InkFilePicker in an Android app, but I'm having some issues: trying to upload a file, I get an "org.json.JSONException", since there's no value for "key" in the JSON I obtain as a response. I can handle the exception, but this would mean touching the library's files: is it ok? It shouldn't, I think. Library is outdated, or bugged: is there someone who already encountered this problem?
Another little problem: how can I change the default name "testfile.file" to the original one (e.g. "foo.jpeg")?
I had the same problem. I configured my S3 settings and everything went ok after that.

Categories

Resources