Olá,
Bem, meu projeto não consegue reconhecer os atributos "elevation" e "stateListAnimator" e por consequência disso o build do projeto falha.
Log do Build do Gradle
Executing tasks: [:app:assembleDebug]
Configuration on demand is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72000Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42000Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources
AGPBI: {"kind":"error","text":"No resource identifier found for attribute \u0027elevation\u0027 in package \u0027android\u0027","sources":[{"file":"/home/lucas/AndroidStudioProjects/Agenda/app/src/main/res/layout/activity_lista_alunos.xml","position":{"startLine":10}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"No resource identifier found for attribute \u0027stateListAnimator\u0027 in package \u0027android\u0027","sources":[{"file":"/home/lucas/AndroidStudioProjects/Agenda/app/src/main/res/layout/activity_lista_alunos.xml","position":{"startLine":10}}],"original":"","tool":"AAPT"}
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/lucas/Documentos/adt-bundle-linux-x86_64-20140702/sdk/build-tools/23.0.2/aapt'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1 mins 11.132 secs
activity_lista_alunos.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ListView
android:id="@+id/lista_alunos"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<Button
android:id="@+id/novo_aluno"
android:layout_width="56dp"
android:layout_height="56dp"
android:text="+"
android:textSize="40dp"
android:textColor="#ffffff"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_marginRight="16dp"
android:layout_marginBottom="16dp"
android:background="@drawable/fundo"
android:elevation="6dp"
android:stateListAnimator="@null"/>
</RelativeLayout>
ListaAlunosActivity.java
package br.com.alura.agenda;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ArrayAdapter;
import android.widget.ListView;
public class ListaAlunosActivity extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_lista_alunos);
String[] alunos = {"Daniel", "Ronaldo", "Jeferson", "Felipe"};
ListView listaAlunos = (ListView) findViewById(R.id.lista_alunos);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, alunos);
listaAlunos.setAdapter(adapter);
}
}