Apklib, R.java, and Integration Testing

121 views
Skip to first unread message

Jake Wharton

unread,
Dec 12, 2011, 2:07:25 PM12/12/11
to maven-androi...@googlegroups.com
Both myself and users of my library are experiencing problems running integration tests with apklib dependencies. It seems the values in R.java are not correct when run through Maven but when run through Eclipse the tests run fine.

I think it may be related to this as it seems the values are still be incorrectly marked as final in library projects and thus are inlined and become out of sync in the final APK.

Manfred Moser

unread,
Dec 12, 2011, 3:21:45 PM12/12/11
to maven-androi...@googlegroups.com
You are most likely correct.

From my understanding the SDK will have plain jar package support
including for resources with sdk 17 next year.

Until then you might have to use the maven rindirect plugin or find some
other way.

manfred


On Mon, December 12, 2011 11:07 am, Jake Wharton wrote:
> Both myself and users of my library are experiencing problems running
> integration tests with apklib dependencies. It seems the values in R.java
> are not correct when run through Maven but when run through Eclipse the
> tests run fine.
>
> I think it may be related to

> this<https://groups.google.com/d/msg/maven-android-developers/qvtdzueyNFk/v9wfTEf1q-MJ>as


> it seems the values are still be incorrectly marked as final in library
> projects and thus are inlined and become out of sync in the final APK.
>
> Test case: http://dl.dropbox.com/u/4723421/actionbartestcase.zip
> Original thread:
> https://groups.google.com/d/topic/actionbarsherlock/i6fGbZn-m_M/discussion
>

> --
> You received this message because you are subscribed to the Google Groups
> "Maven Android Developers" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/maven-android-developers/-/U4xhQ_vLzxoJ.
> To post to this group, send email to
> maven-androi...@googlegroups.com.
> To unsubscribe from this group, send email to
> maven-android-deve...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/maven-android-developers?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages