创建 Android 动态壁纸时出现错误 - “Wallpaperservice 无法解析类型”

发布于 2024-11-15 10:29:16 字数 172 浏览 8 评论 0原文

我正在为 Android 开发动态壁纸。

我收到错误“Wallpaperservice 无法解析类型”,所以看来我需要导入一些相同的包。

我导入了包 android.app.Service 包,但 eclipse 显示该包不可用。

那么,我需要手动下载这个包还是其他什么。 请指导。

I am developing live wallpaper for android.

I am getting error "Wallpaperservice cannot be resolved a type", so it seems like I need to import some package for the same.

I imported package android.app.Service package, but eclipse is showing that package is not available.

So, do I need to download this package manually or anything else.
Please guide.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

抠脚大汉 2024-11-22 10:29:16

你需要

import android.service.wallpaper.WallpaperService;

但也许你的问题是你的构建目标?您需要指定 API 7 (Android 2.1) 或更高版本。

You need

import android.service.wallpaper.WallpaperService;

But maybe your problem is your build target? You need to specify API 7 (Android 2.1) or higher.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文