RT在通讯录android\packages\apps\Contacts\src\com\android\contacts\ViewContactActivity.java,引包时代码如下:
import com.android.phonenumberlocation.PhoneNumLocLib;要引入的包的路径如下
android\packages\apps\PhoneNumberLocation\src\com\android\phonenumberlocation其中有个类PhoneNumLocLib.java编译时提示错误如下:
packages/apps/Contacts/src/com/android/contacts/ViewContactActivity.java:133: package com.android.phonenumberlocation does not exist引入其它APP下面的包的时候,为什么会出现这个错误?请高手指教~谢啦
import com.android.phonenumberlocation.PhoneNumLocLib;要引入的包的路径如下
android\packages\apps\PhoneNumberLocation\src\com\android\phonenumberlocation其中有个类PhoneNumLocLib.java编译时提示错误如下:
packages/apps/Contacts/src/com/android/contacts/ViewContactActivity.java:133: package com.android.phonenumberlocation does not exist引入其它APP下面的包的时候,为什么会出现这个错误?请高手指教~谢啦
解决方案 »
- cocos2d-android在创建CCGLSurfaceView的时候报找不到类异常
- 如何本地化存储几组数据
- Linux应用移植到Android下
- Internal error: Oops: 817 [#1] PREEMPT是什么问题?
- 平台为Beagleboard xm Rev B系统为android2.3如何添加etherent?
- Android应用开发学什么如何学
- 开发的android应用程序不在程序显示中显示
- 音乐播放控制音量问题
- 8天快速掌握Android视频(完整版--适合有JavaWeb基础学习)
- android工程运行提示unfortunately,has stopped
- android 读取xml来生成界面
- 在模拟器上跑android的mms的源码,求助下
你可知道com.android.phonenumberlocation的含义?
它是
android\packages\apps\PhoneNumberLocation\src\com\android\phonenumberlocation中com\android\phonenumberlocation的意思按照你的做法,就代表:
android\packages\apps\Contacts\src\下有com\android\phonenumberlocation这么个类总结一下:
import com.android.xxxx 表示同一个app下的类的src的import操作自己学习下import 不以com.开头的导入方法,会明白更多~
就是说想要直接导入其他app下的类来用是不可能的咯?个人感觉应该还有办法~