sktverma / maven-android-plugin

Automatically exported from code.google.com/p/maven-android-plugin
0 stars 0 forks source link

in the apklib's R.java file, resource int value is diffent with apk's R.java file #457

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.there is some layouts to use in the apklib, for example 
in the apklib use R.layout.screen
public static final class layout {
     public static int screen_simple=0x7f03000a;
}
2. when use the apklib to package a apk, the R.layout._simple changed to anthor 
value, so the layout changed too.

3. in the end, the apk can't use, crash.

What is the expected output?

What do you see instead?

What version of maven-android-plugin are you using?

What are the complete output lines of "mvn -version" on your machine?

Please provide any additional information below.

Original issue reported on code.google.com by denny370...@gmail.com on 23 Apr 2014 at 3:36

GoogleCodeExporter commented 9 years ago
That is entirely expected.

The resources value in an apklib are not final. They are placeholders for the 
resources values in your apk (which are final).

Original comment by william....@xandar.com.au on 23 Apr 2014 at 3:52

GoogleCodeExporter commented 9 years ago
so,and how to do, or there is other config to do.

Original comment by denny370...@gmail.com on 23 Apr 2014 at 7:47

GoogleCodeExporter commented 9 years ago
How to do what?

Post a simple project that shows what you are trying to do and the error
you are getting

Original comment by william....@xandar.com.au on 23 Apr 2014 at 8:26