Skip to content

Instantly share code, notes, and snippets.

@jakenjarvis
Created September 15, 2013 13:22
Show Gist options
  • Save jakenjarvis/6570718 to your computer and use it in GitHub Desktop.
Save jakenjarvis/6570718 to your computer and use it in GitHub Desktop.
gradleでMavenのpom.xmlのpackagingで指定されているファイル以外をdependenciesでcompileする方法 ref: http://qiita.com/jakenjarvis@github/items/02e8e2b77abf3960e892
dependencies {
compile 'com.tojc.ormlite.android:ormlite-content-provider-library:1.0.3@jar'
}
<dependency>
<groupId>com.tojc.ormlite.android</groupId>
<artifactId>ormlite-content-provider-library</artifactId>
<version>1.0.3</version>
<type>jar</type> <!-- or apklib -->
</dependency>
Gradle: Execution failed for task ':TestApplication:packageDebug'.
> Duplicate files copied in APK AndroidManifest.xml
File 1: C:\Users\Jaken\AndroidStudioProjects\TestApplicationProject\TestApplication\build\libs\TestApplication-debug.ap_
File 2: C:\Users\Jaken\AndroidStudioProjects\TestApplicationProject\TestApplication\build\libs\TestApplication-debug.ap_
Origin 2: C:\Users\Jaken\.gradle\caches\artifacts-26\filestore\com.tojc.ormlite.android\ormlite-content-provider-library\1.0.3\apklib\5b3fb9e6ca26b4a01166740cf513cbd8f9ac6450\ormlite-content-provider-library-1.0.3.apklib
<parent>
<groupId>com.tojc.ormlite.android</groupId>
<artifactId>ormlite-content-provider-parent</artifactId>
<version>1.0.3</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>ormlite-content-provider-library</artifactId>
<name>Android-OrmLiteContentProvider Library</name>
<packaging>apklib</packaging>
<description>This is a library that easy to make using ContentProvider with OrmLite.</description>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment