|
程序使用apploader方式运行,主要想测试扫码功能和GPS定位功能
安卓手机在扫码之后显示空白,苹果手机IOS11,扫码后安装证书并设置信任,在安装APPLOADER时,安装至一般就停止,提示无法下载。如何解决?
另外,生成安卓本地包也报错
E:\WeX5_V3.7\model\Native\PATROL\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:160: 错误: 找不到符号
LocationManager myLocationManager = (LocationManager) cordova.getActivity().getSystemService(Context.LOCATION_SERVICE);
^
符号: 类 LocationManager
位置: 类 BaiduLocation
E:\WeX5_V3.7\model\Native\PATROL\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:160: 错误: 找不到符号
LocationManager myLocationManager = (LocationManager) cordova.getActivity().getSystemService(Context.LOCATION_SERVICE);
^
符号: 类 LocationManager
位置: 类 BaiduLocation
E:\WeX5_V3.7\model\Native\PATROL\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:160: 错误: 找不到符号
LocationManager myLocationManager = (LocationManager) cordova.getActivity().getSystemService(Context.LOCATION_SERVICE);
^
符号: 变量 Context
位置: 类 BaiduLocation
E:\WeX5_V3.7\model\Native\PATROL\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:161: 错误: 找不到符号
if(myLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)){
^
符号: 变量 LocationManager
位置: 类 BaiduLocation
E:\WeX5_V3.7\model\Native\PATROL\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:167: 错误: 程序包Settings不存在
int state = Settings.Secure.getInt(cordova.getActivity().getContentResolver(), Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF);
^
E:\WeX5_V3.7\model\Native\PATROL\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:167: 错误: 程序包Settings不存在
int state = Settings.Secure.getInt(cordova.getActivity().getContentResolver(), Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF);
^
E:\WeX5_V3.7\model\Native\PATROL\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:167: 错误: 程序包Settings不存在
int state = Settings.Secure.getInt(cordova.getActivity().getContentResolver(), Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF);
^
E:\WeX5_V3.7\model\Native\PATROL\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:168: 错误: 程序包Settings不存在
if (state == Settings.Secure.LOCATION_MODE_OFF) {
^
E:\WeX5_V3.7\model\Native\PATROL\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:177: 错误: 找不到符号
Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
^
符号: 类 Intent
位置: 类 BaiduLocation
E:\WeX5_V3.7\model\Native\PATROL\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:177: 错误: 找不到符号
Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
^
符号: 类 Intent
位置: 类 BaiduLocation
E:\WeX5_V3.7\model\Native\PATROL\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:177: 错误: 找不到符号
Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
^
符号: 变量 Settings
位置: 类 BaiduLocation
:compileDebugJavaWithJavac FAILED
BUILD FAILED
Total time: 10.728 secs
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
11 个错误
FAILURE: Build failed with an exception.
|
|