在接sdk的时候,如果使用adroid-17碰到 could not find the classes xxxxx
来源:互联网 发布:淘宝联盟反返的钱 编辑:程序博客网 时间:2024/05/17 21:35
在接sdk的时候,如果使用adroid-17碰到 could not find the classes xxxxx
接包时,找了好久,你会发现明显类引入是没有问题的,编写代码时也没有报错,明明也把包导入了。但是,你认真看可能会发现could not find the classes xxxx
如果是这样,你可以试着这样做:
右键工程,
Build path,
java build path,选择libraries
在右边的按钮中点击“Add Library”
选择“User library”,点击“下一步”
点击“User librarys”按钮
在出现的界面中点击“New..”按钮
在弹出的界面中随便起一个名字,点击“确定”
点击“Add jars”按钮选择第三方jar包,点击“确定”完成。
后面的步骤很重要,如果不进行后面的操作。在Eclipse里显示编译通过,不会有错误,但在模拟器或真机上运行的时候可能就会出现java.lang.noclassdeffounderror之类的错误:
1、在Android项目根目录下新建一个libs文件夹;
2、把你需要的导入的第三方Jar包复制进这个目录;
3、在libs目录上点右键,选Bulid path –> Use as source folder。
0 0
- 在接sdk的时候,如果使用adroid-17碰到 could not find the classes xxxxx
- 解决[...]Could not find XXXXX.apk问题
- Myeclips运行的的时候出现Could not find the main class:Main. Program will exit.
- 安装java的时候出现Could not find the main class.program will exit
- 在导入包的时候出现Could not find class 的错误
- 在Android Studio 运行的时候报E/dalvikvm: Could not find class 'xxx',
- 在Android Studio 运行的时候报E/dalvikvm: Could not find class 'xxx',
- 在Android Studio 运行的时候报dalvikvm: Could not find class 'xxx',
- 在Android SDK里新建虚拟机出现:could not find virtual device named 'xxx'的解决办法
- 关于在java6中使用XFire时碰到的一个问题Could not initialize Service
- 安装J2EE的SDK报错:could not find the required version of the Java(TM)2 Runtime Environment i
- could not find the adb
- 关于eclipse在引用外来Crouton的库的时候出现 Could not find library.apk! 错误的处理
- 开发中碰到的问题:eclipse中的引用项目报Could not find *.apk!解决办法
- 真机测试碰到Could not find Developer Disk Image的解决办法
- bundle install时候出现"Could not find modernizr-2.6.2 in any of the sources"
- Xcode真机测试could not find developer disk image解决方法(当SDK升级高版本而Xcode没升级的时候会出现这种情况)
- 在使用一个控件的时候出现Layout cycle detected. Layout could not complete 错误。
- 感恩是一个人的必备品质
- poj 1721 CARDS (置换群)
- Modbus通讯协议
- LinkedHashMap和HashMap的比较使用
- mysql 修改密码忘记使用password函数导致后面无法连接,解决方法记录
- 在接sdk的时候,如果使用adroid-17碰到 could not find the classes xxxxx
- C++编译告警
- iOS Code Signing 学习笔记
- IoT协议: SharkMQTT 与MQTT
- redis批量删除多个keys
- eclipse在线安装Egit插件失败
- 蓝桥杯:核桃的数量
- poj 1742 Coins
- php递归读取目录与创建目录