Classe Pas Trouvé Le Soutien Android La Conception De La Fenêtre Des Éléments Widget

Bonne journée, pouvez-vous m'aider. J'ai eu cette erreur lors de la compilation/exécution de mon code sur un émulateur. C'est l'exemple de tutoriel, j'ai utilisé pour faire. J'ai utilisé min Cible API - 15 et compiler la dernière gradle
'com.android.support:design:23.0.0'

http://www.android4devs.com/2015/06/navigation-view-material-design-support.html

Code D'Erreur:

AndroidRuntime: java.lang.RuntimeException: Impossible de démarrer l'activité ComponentInfo{com.eccp.projects.ecosavers.ecosavers/com.eccp.projects.ecosavers.ecosavers.activities.MainActivity}: android.vue.InflateException: Binaire dans le fichier XML de la ligne #29: Binaire fichier XML ligne n ° 29: Erreur de gonflage de la classe android.de soutien.de la conception.widget de.La fenêtre des éléments
12-29 06:43:39.409 3448-3448/com.cepc.projets.ecosavers.ecosavers E/AndroidRuntime: au android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)

E/AndroidRuntime: Causés par: android.vue.InflateException: Binaire dans le fichier XML de la ligne #29: Binaire dans le fichier XML de la ligne #29: Erreur de gonflage de la classe android.de soutien.de la conception.widget de.La fenêtre des éléments

Voici mes codes: MainActivity.java

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//SET my own toolbar
toolbar = (Toolbar) findViewById(R.id.tool_bar);
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayShowHomeEnabled(true);
getSupportActionBar().setHomeButtonEnabled(true);
mNavigationView = (NavigationView) findViewById(R.id.navigation_view);
mNavigationView.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(MenuItem menuItem) {
if (menuItem.isChecked()) menuItem.setChecked(false);
else menuItem.setChecked(true);
//Closing drawer on item click
mDrawerlayout.closeDrawers();
//Check to see which item was being clicked and perform appropriate action
switch (menuItem.getItemId()) {
//Replacing the main content with ContentFragment Which is our Inbox View;
case R.id.events:
Toast.makeText(getApplicationContext(), "Inbox Selected", Toast.LENGTH_SHORT).show();
Eco_events fragment = new Eco_events();
android.support.v4.app.FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
fragmentTransaction.replace(R.id.frame, fragment);
fragmentTransaction.commit();
return true;
// show a toast on click
case R.id.activities:
Toast.makeText(getApplicationContext(), "Send Selected", Toast.LENGTH_SHORT).show();
return true;
case R.id.spam:
Toast.makeText(getApplicationContext(), "Spam Selected", Toast.LENGTH_SHORT).show();
return true;
default:
Toast.makeText(getApplicationContext(), "Somethings Wrong", Toast.LENGTH_SHORT).show();
return true;
}
}
});
//Initializing Drawer Layout and ActionBarToggle
mDrawerlayout = (DrawerLayout) findViewById(R.id.drawer);
mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerlayout, toolbar, R.string.drawerOpened, R.string.drawerOpened) {
@Override
public void onDrawerClosed(View drawerView) {
//Code here will be triggered once the drawer closes as we dont want anything to happen so we leave this blank
super.onDrawerClosed(drawerView);
}
@Override
public void onDrawerOpened(View drawerView) {
//Code here will be triggered once the drawer open as we dont want anything to happen so we leave this blank
super.onDrawerOpened(drawerView);
}
};
//Setting the actionbarToggle to drawer layout
mDrawerlayout.setDrawerListener(mDrawerToggle);
//calling sync state is
mDrawerToggle.syncState();
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
return super.onOptionsItemSelected(item);
}

XML:activity_main.xml

<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/drawer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context=".MainActivity">
<LinearLayout
android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="vertical"
>
<include
android:id="@+id/tool_bar"
layout="@layout/toolbar"
/>
<FrameLayout
android:id="@+id/frame"
android:layout_width="match_parent"
android:layout_height="match_parent">
</FrameLayout>
</LinearLayout>
<android.support.design.widget.NavigationView
android:id="@+id/navigation_view"
android:layout_height="match_parent"
android:layout_width="wrap_content"
android:layout_gravity="start"
app:headerLayout="@layout/header"
app:menu="@menu/drawer"
/> </android.support.v4.widget.DrawerLayout>
pouvez-vous publier stacktrace?
vous pouvez publier des applications de construction.gradle fichier?
que voulez-vous dire? La liste de gradle que j'ai utilisé pour compiler?
Je ne sais pas à poster l'ensemble de la trace de la pile, je suis nouveau. Je ne publier ce segment, où je trouve que c'est l'erreur que j'ai besoin de corriger. 🙁 Ai-je besoin de modifier et de mettre la pile de suivi?
compiler fileTree(dir: 'libs', comprend: ['*.pot']) compiler 'com.android.support:appcompat-v7:22.2.0' compiler 'com.android.support:design:22.2.0' compiler 'de.hdodenhof:circleimageview:1.3.0' Gradle fichiers.

OriginalL'auteur RoCk Vangeance | 2015-12-29