开发者

Getting error while creating android live wallpaper - "Wallpaperservice cannot be resolved a type"

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 pack开发者_运维技巧age is not available.

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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜