All java files must begin with the package
statement, but I can not see it from code you posted in pastebin.
Add to your class' first line:
package <app_package_name>;
And in your project, make sure there is a DemoWallpaperService.java file within the folder.