开发者

How do i run android comaptibity package samples

I want to run the samples given in android compatibility package v4. I imported the project into eclip开发者_运维技巧se but i get the following error com.example.android.supportv4.R cannot be resolved. How do i run the samples given


For some reason, it wasn't enough for me to just set target=android-13. Moved all the ./src files away, then commented out service android:name=".content.LocalServiceBroadcaster$LocalService" android:stopWithTask="true" tag in the manifest, and R got generated. Moved sources back, they compiled. android:stopWithTask didn't get recognized, though.


You should make sure that the Target SDK is level 13. Once you target that, the resources get included.


You should put android-support-v13.jar in your build path instead of android-support-v4.jar and it will work

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜