You've done something to include resources-debug.ap_ into your classpath,
which is incorrect. resources-debug.ap_ is used in packaging as the
resources argument, if it's passed as a classpath parameter, it will cause
the error you see.
bldr.packageApk(r.getAbsolutePath, d, jars,
layout.resources.getAbsolutePath,
(if (collectedJni.exists) Seq(collectedJni) else Seq.empty).asJava,
null, createDebug,
if (createDebug) debugConfig else null, options,
output.getAbsolutePath)
^^ in the above, 'r' is being included in 'jars' which causes the error.
Your build script must have done something.
On Tue, Sep 9, 2014 at 5:11 AM, David Pérez <[email protected]
> wrote:
> What is strange, that this step used to work in my first try, and I
> haven't modified anything important.
>
> Am Dienstag, 9. September 2014 13:55:26 UTC+2 schrieb David Pérez:
>>
>> While running IncidenciasS/android:run, I get this error:
>>
>> com.android.builder.packaging.DuplicateFileException: Duplicate files
>> copied in APK AndroidManifest.xml
>> File 1: /home/david/des/android/IncidenciasS/target/android-
>> bin/resources-debug.ap_
>> File 2: /home/david/des/android/IncidenciasS/target/android-
>> bin/resources-debug.ap_
>>
>> at com.android.builder.internal.packaging.Packager$
>> JavaAndNativeResourceFilter.checkEntry(Packager.java:173)
>> at com.android.builder.signing.SignedJarBuilder.writeZip(
>> SignedJarBuilder.java:259)
>> at com.android.builder.internal.packaging.Packager.
>> addResourcesFromJar(Packager.java:445)
>> at com.android.builder.core.AndroidBuilder.packageApk(
>> AndroidBuilder.java:1710)
>>
>> [error] (IncidenciasS/android:apkbuild)
>> com.android.builder.packaging.DuplicateFileException:
>> Duplicate files copied in APK AndroidManifest.xml
>>
>> IncidenciasS is the name of the subproject.
>>
>> It's strange that both File 1 and File 2 are the same.
>>
>> Maybe the apkbuildExcludes setting can help.
>>
>> Any idea, please?
>>
>> David
>>
> --
> You received this message because you are subscribed to the Google Groups
> "scala-on-android" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"scala-on-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.