intellij-java2smali icon indicating copy to clipboard operation
intellij-java2smali copied to clipboard

not able to use version 2.0.1 because I have to work with resource files name start with '$' sign

Open infahash opened this issue 4 years ago • 4 comments

after updating java2smali to version 2.0.1 I was not able to do my work. it's giving me Error: '$' is not a valid file-based resource name character: File-based resource names must contain only lowercase a-z, 0-9, or underscore

on version 1.6 I was able to use the plugin by adding

lintOptions {
        abortOnError false
}

to my build.gradle. but on the latest version it does not work and giving me the error for resource names

infahash avatar Jul 10 '20 20:07 infahash

Hi @infahash, could you provide a sample project that leads to your error?

ollide avatar Jul 22 '20 23:07 ollide

It's available on any of decompiled app (XCIPTV app for example). While using resources from decompiled app new version always fails because of resources name error I mentioned

infahash avatar Jul 23 '20 03:07 infahash

The plugin only works when the module or project of the Java/Kotlin file you try to compile to smali can be build. I assume that you also cannot regularly build the decompiled project?

ollide avatar Jul 24 '20 20:07 ollide

yes. I know. When works on some big projects I have to keep decompiled smali in one project, and making java code on another project. resources are synced between both. so there are a few or many files start with $ sign. while those files on java project the new version of plugin always failed and works fine when I downgrade.

infahash avatar Jul 27 '20 16:07 infahash