|

楼主 |
发表于 2017-11-15 10:39:34
|
显示全部楼层
D:\Wex537\model\Native\pgeo\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);
^
D:\Wex537\model\Native\pgeo\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);
^
D:\Wex537\model\Native\pgeo\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);
^
D:\Wex537\model\Native\pgeo\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:168: 错误: 程序包Settings不存在
if (state == Settings.Secure.LOCATION_MODE_OFF) {
^
D:\Wex537\model\Native\pgeo\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:177: 错误: 找不到符号
Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
^
符号: 类 Intent
位置: 类 BaiduLocation
D:\Wex537\model\Native\pgeo\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:177: 错误: 找不到符号
Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
^
符号: 类 Intent
位置: 类 BaiduLocation
D:\Wex537\model\Native\pgeo\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
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
11 个错误
BUILD FAILED |
|