No resource identifier found for attribute 'layout_behavior' in package
That string resource is defined within the Material Design support library.
Since you're not using the CoordinatorLayout
from the Material Design support library, you should be able to safely remove the app:layout_behavior
attribute. It was probably cut & paste from other code.
NOTE: If you are actually using CoordinatorLayout
and want the cooperative scrolling behaviors to work, you need to add the dependency for the latest version of the Material Design Support library to your Gradle build file:
compile 'com.android.support:design:23.0.1'
UPDATE: Note that with the latest versions of Gradle the compile
configuration has been deprecated in favor of implementation
and api
configurations so your dependency could look like this:
implementation 'com.android.support:design:27.0.2'
This is only an example; the version numbers may be out of date when you read this, so make sure your version matches the version of the support library that you want to use.
For more info: What's the difference between implementation and compile in gradle
No resource identifier found for attribute 'layout_behavior' in package
That string resource is defined within the Material Design support library.
Since you're not using the CoordinatorLayout
from the Material Design support library, you should be able to safely remove the app:layout_behavior
attribute. It was probably cut & paste from other code.
NOTE: If you are actually using CoordinatorLayout
and want the cooperative scrolling behaviors to work, you need to add the dependency for the latest version of the Material Design Support library to your Gradle build file:
compile 'com.android.support:design:23.0.1'
UPDATE: Note that with the latest versions of Gradle the compile
configuration has been deprecated in favor of implementation
and api
configurations so your dependency could look like this:
implementation 'com.android.support:design:27.0.2'
This is only an example; the version numbers may be out of date when you read this, so make sure your version matches the version of the support library that you want to use.
For more info: What's the difference between implementation and compile in gradle
No resource identifier found for attribute 'layout_constraintBottom' in package
AFAIK there is no attribute layout_constraintBottom
in ConstraintLayout
. There is layout_constraintBottom_toTopOf
and layout_constraintBottom_toBottomOf
.
I suggest that you use the following line instead:
app:layout_constraintBottom_toBottomOf="parent"
No resource identifier found for attribute 'menu' in package in Android
I ended up switching to Android Studio which fixed the problem. Eclipse seems to have a lot of bugs when trying to add support libraries.
Related Topics
Passing Function as a Parameter in Java
Xmpp with Java Asmack Library Supporting X-Facebook-Platform
File Exists and Is Directory, But Listfiles() Returns Null
Cannot Resolve Method Getmap()
How to Simulate Low Memory in the Android Emulator
Android Resource Not Found Exception
What Is the Simplest Way to Reverse an Arraylist
App Crashing When Trying to Use Recyclerview on Android 5.0
Android Proguard JavaScript Interface Fail
Converting JSON String to Java Object
Using Asynctask with Passing a Value
Httpurlconnection.Getresponsecode() Returns -1 on Second Invocation
Transformexception Duplicate Entry for Common.Annotations.Beta
Listview Selection Remains Persistent After Exiting Choice Mode