【发布时间】:2016-08-31 22:30:01
【问题描述】:
我正在尝试为 EPSON Moverio BT-2000 开发应用程序。
我是 android studio 的新手,我不明白为什么我不能使用我已经导入的库中的某些方法(我猜对了)。
所以,我已将我的库添加到名为 libs 的文件夹中,右键单击它,添加为库。
我签入了 builds.gradle
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile files('libs/H725Ctrl.jar') // this lib
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:21.0.3'
}
此外,我可以使用一些元素(方法、字符串定义等),但有些不能。我不明白为什么以及如何可能。
如果有必要,我可以发布我的源代码。
你有什么想法吗?
谢谢。
弗兰克
注意:我使用的 lib 已被 android 折旧
NB2:示例
Camera.Parameters params = l_pCamera.getParameters();
// I can do this and getParameters() works
List<String> Supported = params.getSupportedEpsonCameraModes();
//I can't invoke getSupportedEpsonCameraModes() or methods are in the same file
【问题讨论】:
标签: android android-studio jar epson