【问题标题】:Android builds failing with compilation errorsAndroid 构建失败并出现编译错误
【发布时间】:2018-05-26 07:06:01
【问题描述】:

我正在尝试为 android 构建我的应用程序。它是为通知设置的。如果我使用 3.4 版构建,则会出现以下错误:

/tmp/x/WordTime1/src/main/java/com/codename1/impl/android/AndroidImplementation.java:4576:错误:找不到符号 通知.setLatestEventInfo(activity, contentTitle, contentBody, contentIntent); ^ 符号:方法 setLatestEventInfo(Activity,String,String,PendingIntent) 位置:Notification 类型的变量通知

/tmp/x/WordTime1/src/main/java/com/codename1/impl/android/PushNotificationService.java:110:错误:找不到符号 notif.setLatestEventInfo(this, value, "", contentIntent); ^ 符号:方法 setLatestEventInfo(PushNotificationService,String,String,PendingIntent) location:Notif类型的变量notif

如果我使用最新版本构建,则会出现此错误:

/tmp/x/WordTime1/src/main/java/com/codename1/social/GoogleImpl.java:112:错误:找不到符号 GoogleSignInAccount acct = result.getSignInAccount(); 还有更多来自 com/codename1/social 包。

谢谢

山姆

【问题讨论】:

    标签: codenameone


    【解决方案1】:

    您应该使用最新版本构建,因为现在 3.4 已经过时了(我们已经过了 3.8)。

    Google 登录的问题与 Google 删除的旧 Google Plus 登录支持有关。您需要删除与此相关的构建提示并切换到新的 Google 登录功能 mentioned in the developer guide

    我在后面提到了 Google Connect 开关 in the blog a while 的问题。

    【讨论】:

      猜你喜欢
      • 2022-12-16
      • 2020-06-24
      • 1970-01-01
      • 1970-01-01
      • 2017-06-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-27
      相关资源
      最近更新 更多