以下是我的build.gradle文件:
apply plugin: 'com.androID.application'androID { compileSdkVersion 20 buildToolsversion '20.0.0' defaultConfig { applicationID 'com.example.lsykora.androIDwearWidget' minSdkVersion 'L' targetSdkVersion 'L' versionCode 1 versionname '1.0'}buildTypes { release { runProguard false proguardfiles getDefaultProguardfile('proguard-androID.txt'),'proguard- rules.pro' }}productFlavors {}}dependencIEs {compile filetree(include: ['*.jar'],dir: 'libs')// You must install or update the Support Repository through the SDK manager to use this dependency.// You must install or update the Support Repository through the SDK manager to use this dependency.compile 'com.androID.support:support-v13:+'compile 'com.Google.androID.support:wearable:+'compile 'com.Google.androID.gms:play-services-wearable:+'}
我已经使用SDK管理器安装了所有SDK,我尝试在build.gradle文件中修改最小,目标和编译SDK,将它们设置为19,20或AndroID-L,但我的结果相同 – 由于这些无法识别的类,程序将无法编译.任何输入都表示赞赏!谢谢
解决方法 不要扩展WatchActivity(该类实际上不存在).AndroID Wear活动的基类只是标准的Activity
.
(此外,如果您使用的是AndroID Studio 0.8.0,更新到0.8.1 – 0.8.0的模板中存在错误,并使用扩展WatchActivity创建新活动,这实际上是无效的).
总结以上是内存溢出为你收集整理的在Android Studio中编译简单的可穿戴应用程序 – 未找到WatchActivity全部内容,希望文章能够帮你解决在Android Studio中编译简单的可穿戴应用程序 – 未找到WatchActivity所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)