【问题标题】:New to Android Dev. Cant figure out whats going on hereAndroid 开发新手。无法弄清楚这里发生了什么
【发布时间】:2014-07-04 02:19:31
【问题描述】:

这是在创建新的可穿戴项目时自动生成的代码。那为什么不编译呢?

【问题讨论】:

  • 你做了'清理你的项目'吗?制作默认项目后转到“构建”->“清理项目”?尝试这样做,看看这些错误是否消失了
  • 我尝试了你的建议仍然失败。不过还是谢谢

标签: android android-studio android-2.2-froyo wear-os


【解决方案1】:

WatchActivity 不存在。 Android Studio 0.8.0 有错误的模板并会创建此代码,但要扩展的正确类只是普通的旧 Activity(此错误已修复,从 0.8.1 和 0.8.2 开始,新活动不再扩展 WatchActivity )。

Compiling simple wearable app in Android Studio - WatchActivity not found

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-07-26
    • 1970-01-01
    • 1970-01-01
    • 2016-11-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多