приложение вылетает сразу после запуска, с ошибкой:сбоями при запуске
11-08 21:13:08.704 15973-15973/com.t99sdevelopment.centralized E/AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.t99sdevelopment.centralized/com.t99sdevelopment.centralized.HomeScreen}: android.view.InflateException: Binary XML file line #81: Error inflating class android.support.design.widget.NavigationView
файл Java:
package com.t99sdevelopment.centralized;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Window;
import android.widget.Toolbar;
public class HomeScreen extends AppCompatActivity {
Intent intentHome = new Intent(this, HomeScreen.class);
Intent intentAnnouncements = new Intent(this, AnnouncementsScreen.class);
/*
Intent intentSchedule = new Intent(this, ScheduleScreen.class);
Intent intentCalendar = new Intent(this, CalendarScreen.class);
Intent intentContactBook = new Intent(this, ContactBookScreen.class);
Intent intentSportsSchedule = new Intent(this, SportsScheduleScreen.class);
Intent intentFrontAndCentral = new Intent(this, FrontAndCentralScreen.class);
Intent intentMap = new Intent(this, MapScreen.class);
Intent intentAccount = new Intent(this, AccountScreen.class);
*/
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_homescreen);
setTheme(R.style.AppTheme);
}
private void goToHome(){
}
private void goToAnnouncements(){
startActivity(intentAnnouncements);
}
private void goToSchedule(){
}
private void goToCalendar(){
}
private void goToContactBook(){
}
private void goToSportsSchedule(){
}
private void goToFrontAndCentral(){
}
private void goToMap(){
}
private void goToAccount(){
}
}
Here's the gist of the other files.
Эта ошибка указывает на то, что нав ящик не мог быть создан, но между последним ящиком навигации был, и теперь я не изменил ничего, что могло бы повлиять на него.
Я пересмотрел код, изменил пару вещей, ошибка осталась прежней, но код был другим, поэтому я отправил другую, новую страницу here, которая была решена.
вы будете размещать весь трассировки стека. Другие строки также важны –