scala-android / sbt-android

An easy-to-use sbt plugin for working with all Android projects
Other
741 stars 94 forks source link

duplicate entry issue #27

Closed jinntrance closed 11 years ago

jinntrance commented 11 years ago

Everytime when I tryed to 'install' the apk, this problem came out. I have two library projects. The sources file are here https://github.com/jinntrance/douban-android/

(douban-book/android:proguard) java.io.IOException: Can't write [/home/joseph/workspaces/douban-android/bin/classes.proguard.jar](Can't read [/home/joseph/workspaces/douban-android/bin/classes.jar%28;;;;!META-INF/**,!rootdoc.txt%29] %28Duplicate zip entry [classes.jar:com/google/zxing/client/android/HttpHelper$ContentType.class]%29)

jinntrance commented 11 years ago

I don't kown whether it's because of the proguad cache or the precompiled class.jar of the library projects.

pfn commented 11 years ago

Do not have duplicate classes, dex and proguard does not allow it.

On Tue, Nov 5, 2013 at 9:06 AM, Joseph Jin-Chuan Tang < notifications@github.com> wrote:

I don't kown whether it's because of the proguad cache or the precompiled class.jar of the library projects.

— Reply to this email directly or view it on GitHubhttps://github.com/pfn/android-sdk-plugin/issues/27#issuecomment-27791607 .

jinntrance commented 11 years ago

I used the build class for the library projects from previous android-sdk plugin. It's fixed now.

pfn commented 11 years ago

You did what?

Sent from my tablet On Nov 6, 2013 7:20 PM, "Joseph Jin-Chuan Tang" notifications@github.com wrote:

I used the build class for the library projects from previous android-sdk plugin. It's fixed now.

— Reply to this email directly or view it on GitHubhttps://github.com/pfn/android-sdk-plugin/issues/27#issuecomment-27935173 .

jinntrance commented 11 years ago

I've removed the Build.scala which set the library projects in an obsolete way(not loading library projects directly from project.properties but letting the main project depend on the library projects).

On Thu, Nov 7, 2013 at 11:21 AM, Perry notifications@github.com wrote:

You did what?

Sent from my tablet On Nov 6, 2013 7:20 PM, "Joseph Jin-Chuan Tang" notifications@github.com

wrote:

I used the build class for the library projects from previous android-sdk plugin. It's fixed now.

— Reply to this email directly or view it on GitHub< https://github.com/pfn/android-sdk-plugin/issues/27#issuecomment-27935173>

.

— Reply to this email directly or view it on GitHubhttps://github.com/pfn/android-sdk-plugin/issues/27#issuecomment-27935194 .

Best Regards. Joseph Jin-Chuan Táng

Master Candidate of UESTC,Chengdu,China.

pfn commented 11 years ago

So you mean you went back to the old multi project build approach instead if using the new AutoLibraryProject feature?

Sent from my phone On Nov 6, 2013 8:44 PM, "Joseph Jin-Chuan Tang" notifications@github.com wrote:

I've removed the Build.scala which set the library projects in an obsolete way(not loading library projects directly from project.properties but letting the main project depend on the library projects).

On Thu, Nov 7, 2013 at 11:21 AM, Perry notifications@github.com wrote:

You did what?

Sent from my tablet On Nov 6, 2013 7:20 PM, "Joseph Jin-Chuan Tang" < notifications@github.com>

wrote:

I used the build class for the library projects from previous android-sdk plugin. It's fixed now.

— Reply to this email directly or view it on GitHub<

https://github.com/pfn/android-sdk-plugin/issues/27#issuecomment-27935173>

.

— Reply to this email directly or view it on GitHub< https://github.com/pfn/android-sdk-plugin/issues/27#issuecomment-27935194>

.

Best Regards. Joseph Jin-Chuan Táng

Master Candidate of UESTC,Chengdu,China.

— Reply to this email directly or view it on GitHubhttps://github.com/pfn/android-sdk-plugin/issues/27#issuecomment-27937594 .

jinntrance commented 11 years ago

I just let the android-sdk-plugin automatically load the library projects from project.properties. It works fine. After I updated the android-sdk-plugin to the newest one, the duplicate-entry problem occurred because I didn't remove the old multi-project build settings in my Build.scala.

Thanks for your time and patience.

On Thu, Nov 7, 2013 at 12:49 PM, Perry notifications@github.com wrote:

So you mean you went back to the old multi project build approach instead if using the new AutoLibraryProject feature?

Sent from my phone On Nov 6, 2013 8:44 PM, "Joseph Jin-Chuan Tang" notifications@github.com

wrote:

I've removed the Build.scala which set the library projects in an obsolete way(not loading library projects directly from project.properties but letting the main project depend on the library projects).

On Thu, Nov 7, 2013 at 11:21 AM, Perry notifications@github.com wrote:

You did what?

Sent from my tablet On Nov 6, 2013 7:20 PM, "Joseph Jin-Chuan Tang" < notifications@github.com>

wrote:

I used the build class for the library projects from previous android-sdk plugin. It's fixed now.

— Reply to this email directly or view it on GitHub<

https://github.com/pfn/android-sdk-plugin/issues/27#issuecomment-27935173>

.

— Reply to this email directly or view it on GitHub<

https://github.com/pfn/android-sdk-plugin/issues/27#issuecomment-27935194>

.

Best Regards. Joseph Jin-Chuan Táng

Master Candidate of UESTC,Chengdu,China.

— Reply to this email directly or view it on GitHub< https://github.com/pfn/android-sdk-plugin/issues/27#issuecomment-27937594>

.

— Reply to this email directly or view it on GitHubhttps://github.com/pfn/android-sdk-plugin/issues/27#issuecomment-27937736 .

Best Regards. Joseph Jin-Chuan Táng

Master Candidate of UESTC,Chengdu,China.

pfn commented 11 years ago

Got it, thanks for letting me know.

Sent from my phone On Nov 6, 2013 8:58 PM, "Joseph Jin-Chuan Tang" notifications@github.com wrote:

I just let the android-sdk-plugin automatically load the library projects from project.properties. It works fine. After I updated the android-sdk-plugin to the newest one, the duplicate-entry problem occurred because I didn't remove the old multi-project build settings in my Build.scala.

Thanks for your time and patience.

On Thu, Nov 7, 2013 at 12:49 PM, Perry notifications@github.com wrote:

So you mean you went back to the old multi project build approach instead if using the new AutoLibraryProject feature?

Sent from my phone On Nov 6, 2013 8:44 PM, "Joseph Jin-Chuan Tang" < notifications@github.com>

wrote:

I've removed the Build.scala which set the library projects in an obsolete way(not loading library projects directly from project.properties but letting the main project depend on the library projects).

On Thu, Nov 7, 2013 at 11:21 AM, Perry notifications@github.com wrote:

You did what?

Sent from my tablet On Nov 6, 2013 7:20 PM, "Joseph Jin-Chuan Tang" < notifications@github.com>

wrote:

I used the build class for the library projects from previous android-sdk plugin. It's fixed now.

— Reply to this email directly or view it on GitHub<

https://github.com/pfn/android-sdk-plugin/issues/27#issuecomment-27935173>

.

— Reply to this email directly or view it on GitHub<

https://github.com/pfn/android-sdk-plugin/issues/27#issuecomment-27935194>

.

Best Regards. Joseph Jin-Chuan Táng

Master Candidate of UESTC,Chengdu,China.

— Reply to this email directly or view it on GitHub<

https://github.com/pfn/android-sdk-plugin/issues/27#issuecomment-27937594>

.

— Reply to this email directly or view it on GitHub< https://github.com/pfn/android-sdk-plugin/issues/27#issuecomment-27937736>

.

Best Regards. Joseph Jin-Chuan Táng

Master Candidate of UESTC,Chengdu,China.

— Reply to this email directly or view it on GitHubhttps://github.com/pfn/android-sdk-plugin/issues/27#issuecomment-27937981 .