引起:java.lang.ClassNotFoundException:在路径上找不到类“android.support.v7.appcompat.R $ styleable”:DexPathList

时间:2015-11-25 05:22:37

标签: java android intellij-idea android-design-library appcompat-v7-r23

我在Intellij 15.0

上收到以下错误消息
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.appcompat.R$styleable" on path: DexPathList

我已经定义了Design& AppCompat库但我不确定出了什么问题?以下是我的活动:

  import android.app.Activity;
    import android.os.Bundle;
    import android.support.design.widget.NavigationView;
    import android.support.design.widget.Snackbar;
    import android.support.v4.app.FragmentManager;
    import android.support.v4.widget.DrawerLayout;
    import android.support.v7.app.ActionBarDrawerToggle;
    import android.support.v7.app.AppCompatActivity;
    import android.support.v7.widget.Toolbar;

    public class DashboardActivity extends AppCompatActivity {

    private Toolbar toolbar;
    private NavigationView navigationView;
    private DrawerLayout drawerLayout;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.dashboard);

    }
    }

我的布局是:

我没有使用gradle,我还附上了我的项目结构的屏幕截图enter image description here enter image description here enter image description here enter image description here enter image description here

0 个答案:

没有答案