开发者

Android Eclipse plugin R generation

Is there any way to set "default" R package generation? By default it is compiled on AndroidManifest.xm开发者_运维知识库l's package property. Is there any way to tell Eclipse plugin to use -J package.name option with aapt command? I want to do this with ant but I have problems with library dependances like it is mentioned here

Regards


Hi if u can check in the manifest there is a package attribute . that is the default R package generation. you can change it to whatever the package You need . and then if u clean your project it will automatically update the R package with your package name

 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"

  package="com.nds.activities"

  android:versionCode="1"

  android:versionName="1.0">......

Imp NOTE: once you do this update your activities with the correct package Path.

But why you want to do this?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜