-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 with apktool b #1533
Comments
I'm using 2.1.1 because I heard there was a regression error in the latest version. Will try latest version and post here. |
Interesting. So a regression with latest that no one shares with the bug tracker? That will make sure it gets fixed :o On topic... |
Thanks for the quick response. Yep, it's named base.apk. I did: Any way to fix this? Does it have to do with the aapt or the framework? |
Not sure. Looks like environment problem from the details I have. |
When I run the same command but with sudo: sudo apktool b base I get this:
|
So it seems to get past the classes.dex issue |
Another permission issue. You don't have permission to write/execute files from |
I have the same error using 2.2.3 jar. What shall we do with aapt? Download and install? |
@Delphian2015 If you don't have permission to |
Thank you for fast answer. Downloaded aapt. Then installed it. After that started command: apktool d base.apk, then apktool b base. And caught the same error. |
This apk for Android 7.1 |
Did you read my comment directly above your first response? #1533 (comment) You need to tell apktool where to find that aapt binary. |
I put all files into folder d:\apktool (apktool.bat, apktool.jar and aapt). Then did in command prompt d:\apktool\aapt.exe. Or is this an incorrect command? |
That is not correct. Please read this comment again - #1533 (comment) |
iBotPeaches I read, but I am not an expert in this. Can you explain more detail how to "use the --aapt binary_path_to_file parameter to load it elsewhere"? I have all files and apk into d:\apktool. What shall I do? Thank you for your help. |
Respectfully, this is very basic parameter stuff. We've now clogged a bug report with 10 replies over things located in the documentation and internet.
|
iBotPeaches before that I was using apk studio, but today I caught the error and downloaded apktool and now i am trying understand how to work with it. I tried Caught the same error:
|
That error has nothing to do with
You must have two classes with same name - https://stackoverflow.com/questions/32505162/smali-multidex-has-already-been-interned/32507592 |
How do I understand this error is related to the language? Because there is no answer in stackoverflow. I didn't change anything in base folder, only did decode and build. |
I've made it a bit further through the build process, I'm now getting this exact error (for which you posted a solution): #1371 |
Download the latest framework and install it |
From my phone (a droid) or from a newer version of apktool? |
The error because of two copy of the folder in smali_assets the first one - smali_assets/java/com, the second smali_assets/com the folders have the same files, if I delete one of them I can build apk with warnings, but the apk doesn't work. |
I got my issue fixed. Thanks for the help! |
Thanks for responding, I will close this then as you were original OP. |
Information
apktool -version
) -2.1.1Stacktrace/Logcat
Steps to Reproduce
apktool
Frameworks
If this APK is from an OEM ROM (Samsung, HTC, LG). Please attach framework files
(
.apks
that live in/system/framework
or/system/priv-app
)APK
If this APK can be freely shared, please upload/attach a link to it.
Questions to ask before submission
apktool d
,apktool b
without changing anything?YES, still got errorsThe text was updated successfully, but these errors were encountered: