java.lang.NoClassDefFoundError: android.support.v4.view.ViewConfigurationCompat

Recently I am trying to run the sliding menu examples which was given in this blog: http://www.curious-creature.org/2012/12/14/android-recipe-3-sliding-menu-layers-and-filters/;

1. download library prject from github;

2. Inside the main project, right click-> property->android-> add library .

3. NoClassDefoundError was given.

I took nearly 24 hours to fix this problem, finally :) , it gets solved.

Here is the solution:

In the library project, delete libs folder. right click-> build path->java build path->add jars->then select the android.support.v4.jar->click ok. Clean the project , Over.

java.lang.NoClassDefFoundError: android.support.v4.view.ViewConfigurationCompat

时间: 2024-12-12 20:33:47

java.lang.NoClassDefFoundError: android.support.v4.view.ViewConfigurationCompat的相关文章

Eclipse中使用recyclerview时出现Caused by: java.lang.NoClassDefFoundError: android.support.v7.recyclerview.R$styleable

转自: http://blog.csdn.net/chenleicpp/article/details/46848785 程序崩溃,错误提示: Caused by: java.lang.NoClassDefFoundError: android.support.v7.recyclerview.R$styleable 原因: 在eclipse中使用RecyclerView,编译没有问题,但是运行时候会出现如下错误,百思不得其解,又说v4包与v7包版本不一致,有说没有导入v7-compat包的,经反

缺少android.support.v4.jar builder path 导入 v4.jar包 Error inflating class android.support.v4.view.ViewPager

04-10 18:57:54.656: E/AndroidRuntime(6346): FATAL EXCEPTION: main04-10 18:57:54.656: E/AndroidRuntime(6346): java.lang.RuntimeException: Unable to start activity ComponentInfo{cn.learn.tabhosttest/cn.learn.tabhosttest.ViewPagerActivity}: android.view

android新手关于左右滑动的问题,布局把<android.support.v4.view.ViewPager/><ImageView/> 放在上面就不行了。

============问题描述============ main.xml代码: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:umadsdk="http://schemas.android.com/apk/res/com.Love

Could not find class &#39;android.support.v4.view.ViewPager&#39;问题处理

Could not find class 'android.support.v4.view.ViewPager', referenced from method*** 而且我有引入ViewPager包,编译是不报错的,但运行时报ViewPager不存在. 解决办法: 1.既然提示工程中没有导入jar包,那么我们就手动将其导入: 右击工程选择 Bulid Path->Add Libraries->User Library->User Libraries->new(随便取一个名字,比如

找不到android.support.v4.view.ViewPager

转自http://blog.csdn.net/nj_liuzl/article/details/8825855 在加载页面xml(setContentView(R.layout.activity_main);)的时候就报错,过不去了,程序上是activity加载不上报错,采取第三种方法. 因为support v4是新添加进来的,在java build path -->order and export把v4勾上.

android.support.v4.view.ViewPager 如何动态更换显示内容

看一段简单的代码,在一个pager里面显示两个TextView List<View> items = new ArrayList<View>(); adapter = new MyPagerAdapter(); TextView tv = new TextView(getActivity()); tv.setText("第一页"); items.add(tv); tv = new TextView(getActivity()); tv.setText("

Android java.lang.NoClassDefFoundError的错误

在开发过程中,遇到一个这样的问题:java.lang.NoClassDefFoundError: android.support.v4.util.SparseArrayCompat,这个问题很奇怪,JAR包也有了,编译也通过了.但就是运行时出现类找不到的问题.NoClassDefFoundError这种错误一般就是对应的类,没有被包含在对应的APK里面.是不是对应的android-support-v4.jar并没有打包到apk中?抱着试一试的态度,打开工程属性设置界面: 把前面的勾选中,再cle

android.support.v4.widget.DrawerLayout 抽屉效果导航菜单

抽屉效果导航菜单图示 如图所示,抽屉效果的导航菜单不用切换到另一个页面,也不用去按菜单的硬件按钮,直接在界面左上角的一个按钮点击,菜单就滑出来,而且感觉能放很多东西 概况:实现上图所示的抽屉效果的导航菜单有以下两种方式 方式1.用SlidingDrawer: http://developer.android.com/reference/android/widget/SlidingDrawer.html 但是不知道为什么这个类官方不建议再继续用了: Deprecated since API lev

java.lang.ClassCastException:fragment cannot be cast to android.support.v4.app.Fragment

已启动APP后台就报了这个错误! java.lang.ClassCastException:fragment cannot be cast to android.support.v4.app.Fragment Java.lang.classcastexception:片段不能被转换为android.support.v4.app.fragment 原因是因为在使用继承Fragment的时候 导错包了:import android.support.v4.Fragment; 正确的包:import a