添加googleplus插件后无法构建android apk? ionic1

时间:2016-09-13 08:58:12

标签: ionic-framework

Error: cmd: Command failed with exit code 1 Error output:
C:\xampp\htdocs\encircle\ui\platforms\android\src\nl\xservices\plugins\GooglePlu
s.java:309: error: cannot find symbol
                result.put("familyName", acct.getFamilyName());
                                             ^
  symbol:   method getFamilyName()
  location: variable acct of type GoogleSignInAccount
C:\xampp\htdocs\encircle\ui\platforms\android\src\nl\xservices\plugins\GooglePlu
s.java:310: error: cannot find symbol
                result.put("givenName", acct.getGivenName());
                                            ^
  symbol:   method getGivenName()
  location: variable acct of type GoogleSignInAccount
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors

FAILURE: Build failed with an exception.

在构建android apk时出现上述错误。请帮我解决这个问题。

1 个答案:

答案 0 :(得分:2)

更新您的Android SDK,尤其是Play服务库。