Build failed showing error “Attribute ”android:focusable“ was already specified for element ”EditText"

41
April 15, 2019, at 4:20 PM

my code is not being build when trying to run it on device or emulator with the error Error:Attribute "android:focusable" was already specified for element "EditText". but it gradle build is successful.

i don't what is the problem with it.

Answer 1

Search in Project using Ctrl + Shift + F(Android Studio) for android:focusable and check whether you have put focusable property more than one time in any EditText, just remove that duplicate occurrence of focusable property.

Let me know if any other error.

READ ALSO
Errors when changing Android version (Target Framework) in Xamarin Forms

Errors when changing Android version (Target Framework) in Xamarin Forms

I have a C# Xamarin Forms Solution in Visual Studio 2019 that was created from the Xamarin Forms Template

40
Keep getting Parse Error launching fileprovider intent

Keep getting Parse Error launching fileprovider intent

I'm trying to launch an update for my app using intent and file provider

16
How to manage multiple animations on the same widget?

How to manage multiple animations on the same widget?

Is there a best practice or general pattern when it comes to handling multiple animations for a single widget?

43
How to parcel PagedList<>?

How to parcel PagedList<>?

I've got data class that contains variable of type PagedList?This class needs to implement Parcelable because I want to save its state inside my Bundle

29