it does not seem to be the right stack trace :) this one is from the other
issue you are facing : ParseException vs FileNotFoundException...

On Tue, Oct 6, 2015 at 8:53 AM Ariel Cattan <ar...@safedk.com> wrote:

> Sure, here it is:
>
> UNEXPECTED TOP-LEVEL EXCEPTION:
> java.lang.RuntimeException: Exception parsing classes
> at com.android.dx.command.dexer.Main.processClass(Main.java:752)
> at com.android.dx.command.dexer.Main.processFileBytes(Main.java:718)
> at com.android.dx.command.dexer.Main.access$1200(Main.java:85)
> at
> com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1645)
> at
> com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:170)
> at
> com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
> at
> com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
> at
> com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
> at
> com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
> at
> com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
> at
> com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
> at
> com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
> at
> com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
> at
> com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
> at
> com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
> at
> com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
> at com.android.dx.command.dexer.Main.processOne(Main.java:672)
> at com.android.dx.command.dexer.Main.processAllFiles(Main.java:574)
> at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)
> at com.android.dx.command.dexer.Main.run(Main.java:277)
> at com.android.dx.command.dexer.Main.main(Main.java:245)
> at com.android.dx.command.Main.main(Main.java:106)
> Caused by: com.android.dx.cf.iface.ParseException: class name
> (com/somesdk/someLib/ShowToast) does not match path
> (classes.jar--2060364831/com/somesdk/someLib/ShowToast.class)
> at
> com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:520)
> at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)
> at
> com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)
> at
> com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)
> at com.android.dx.command.dexer.Main.parseClass(Main.java:764)
> at com.android.dx.command.dexer.Main.access$1500(Main.java:85)
> at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1684)
> at com.android.dx.command.dexer.Main.processClass(Main.java:749)
> ... 21 more
>
> Thanks,
> Ariel
>
> On Tuesday, October 6, 2015 at 6:28:17 PM UTC+3, Jerome Dochez wrote:
>
>> can you get the complete stack trace ? --stacktrace when you invoke
>> gradle.
>>
>> thanks,
>>
>> On Tue, Oct 6, 2015 at 4:48 AM Ariel Cattan <ar...@safedk.com> wrote:
>>
> Hi,
>>>
>>> Trying to run an AsInput transform with android gradle plugin
>>> 1.4.0-beta6 as follows:
>>>
>>> getOutputFormat() - I return Format.JAR
>>>
>>> getScopes() - I ask for all the scopes
>>>
>>> In my case, SUB_PROJECTS_LOCAL_DEPS doesn't contain anything. If I look
>>> at:
>>>
>>>
>>> ...\build\intermediates\transforms\CLASSES_and_RESOURCES\SUB_PROJECTS_LOCAL_DEPS\extractJars\demo\debug
>>>
>>> - it is an empty directory.
>>>
>>> Therefore, when the transform() runs, my transform is never called for
>>> the scope SUB_PROJECTS_LOCAL_DEPS, which makes sense.
>>>
>>> However, when the Dex transform runs, it generates the following error:
>>>
>>> FAILURE: Build failed with an exception.
>>>
>>> * What went wrong:
>>> Execution failed for task ':test2:transformClassesWithDexForDemoDebug'.
>>> > java.io.FileNotFoundException:
>>> D:\AndroidStudioProjects\test2\build\intermediates\transforms\CLASSES\SUB_PROJECTS_LOCAL_DEPS\safedkWrap\demo\debug\classes.jar
>>> (The system cannot find the file specified)
>>>
>>> That doesn't make sense, as my transform was not called to produce any
>>> output for SUB_PROJECTS_LOCAL_DEPS...
>>>
>>> Can you please take a look at that?
>>>
>>> Thanks!
>>> Ariel
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "adt-dev" group.
>>>
>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to adt-dev+u...@googlegroups.com.
>>
>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "adt-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to adt-dev+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adt-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to