New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error writing mapping file: No such file or directory #185
Comments
following. Getting same error |
@222xiaohuan did you find any solution to this? |
@samyakjain No, I tried to google the error, but didn't find any clue. :( |
the same with me. |
+1 :( |
Can anybody help? any progress @samyakjain @eagertofly @Szmiglo ? |
I guess this is jus one warning and you can still gent the output apk file. @222xiaohuan |
The same with me, but I can still get a new apk file. |
you need to sign the apk with your keystore @xoder-me |
@eagertofly yes, i have readed the offical document... i just try it. but thx! |
Yes. It is still generating output file so just ignoring this as a warning On Thu, Oct 27, 2016 at 7:34 AM, Jason Wang notifications@github.com
|
Yes, I can get the package, but before doing the compress, the package size is 18.6M, after doing that, the size is 18.3, so I am not sure if the compress really works. and by the way how the package size changed of yours? @eagertofly @samyakjain @xoder-me |
Not much of significant change in package size. That's why i am also in On Fri, Oct 28, 2016 at 1:29 PM, Emily notifications@github.com wrote:
|
Redex usually doesn't decrease the APK size much; it'll usually make the dexes (bytecode) noticeably smaller, but that compresses well anyways so it doesn't make a big difference in APK size. You can check the dex size using aapt. On Oct 28, 2016, at 2:42 AM, Samyak <notifications@github.commailto:notifications@github.com> wrote: Not much of significant change in package size. That's why i am also in On Fri, Oct 28, 2016 at 1:29 PM, Emily <notifications@github.commailto:notifications@github.com> wrote:
You are receiving this because you are subscribed to this thread. |
{
"redex": {
"passes": [
"ReBindRefsPass",
"BridgePass",
"SynthPass",
"FinalInlinePass",
"DelSuperPass",
"SingleImplPass",
"SimpleInlinePass",
"StaticReloPass",
"RemoveEmptyClassesPass",
"ShortenSrcStringsPass"
]
},
"ShortenSrcStringsPass": {
"filename_mappings": "filename_mappings.txt"
}
} write redex.conf file. and redex ~~ -c redex.conf
|
I have the same problem.:( |
I have the same problem.:( And the command line not working: |
@yiwowang |
I have appended the code |
I write redex.conf. {
"redex": {
"passes": [
"ReBindRefsPass",
"BridgePass",
"SynthPass",
"FinalInlinePass",
"DelSuperPass",
"SingleImplPass",
"SimpleInlinePass",
"StaticReloPass",
"RemoveEmptyClassesPass",
"ShortenSrcStringsPass"
]
},
"ShortenSrcStringsPass": {
"filename_mappings": "filename_mappings.txt"
}
} and run redex $ redex ~~~ -c redex.conf |
In 'redex ~~~ -c redex.conf' ' ~~~' means path of the config file ? |
no. ~~~ is other arguments. example $ redex xx.apk -o r.apk -sign --keystore ~~ --proguard-map ~~ --proguard-config ~~ -c /path/redex.conf |
Did you put the following in default.config? {
"redex": {
"passes": [
"ReBindRefsPass",
"BridgePass",
"SynthPass",
"FinalInlinePass",
"DelSuperPass",
"SingleImplPass",
"SimpleInlinePass",
"StaticReloPass",
"RemoveEmptyClassesPass",
"ShortenSrcStringsPass"
]
},
"ShortenSrcStringsPass": {
"filename_mappings": "filename_mappings.txt"
}
} And did you reinstall redex to the latest version? opt/shorten-srcstrings/Shorten.cpp ...
// generate mapping
FILE* fd = fopen(map_path, "w");
if (fd == nullptr) {
perror("Error writing mapping file");
return;
}
... If the error persists Try removing ShortenSrcStringsPass as it seems to be related to "Shorten". {
"redex": {
"passes": [
"ReBindRefsPass",
"BridgePass",
"SynthPass",
"FinalInlinePass",
"DelSuperPass",
"SingleImplPass",
"SimpleInlinePass",
"StaticReloPass",
"RemoveEmptyClassesPass"
]
}
} If not, I do not know. sorry. |
Great, Thanks @asamaru7 for the solution, The third method is work for me, Now there is no error related to the mapping file.Apk is generated without any error message, but unable to install the apk file . |
Updated to latest, still getting the same warning. But I have also noticed that my after redux my apk's download size reduced by .9mb . So i am assuming redux is working fine. |
This warning should be gone in master. The next release version will fix it for good
On Jan 28, 2017, at 9:50 AM, Samyak <notifications@github.com<mailto:notifications@github.com>> wrote:
Updated to latest, still getting the same warning. But I have also noticed that my after redux my apk's download size reduced by .9mb . So i am assuming redux is working fine.
-
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#185 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AEPG3EiFpwMkY4nBaWErhkUbRZk3AwTOks5rW3_KgaJpZM4KfgQ3>.
|
It sounds like this was fixed back in January. Closing. Please re-open or create a new issue if you see this error again. |
Hi there,
I used the tool according to the guide, everything went fine with the installing process. but when I use redex command to compress the apk, I encountered this error: " Error writing mapping file: No such file or directory."
here are my system info and error screenshot.
Can anybody help?
Thanks a lot!
The text was updated successfully, but these errors were encountered: