Skip to content
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

Rebuilding process exited with code 1 - Instagram Apk #118

Closed
RandomJoe43576 opened this issue Feb 10, 2021 · 2 comments
Closed

Rebuilding process exited with code 1 - Instagram Apk #118

RandomJoe43576 opened this issue Feb 10, 2021 · 2 comments
Labels
apktool Issue that are related to Apktool not APKLab

Comments

@RandomJoe43576
Copy link

RandomJoe43576 commented Feb 10, 2021

I tried to patch & build the Instagram App from here: https://www.apkmirror.com/apk/instagram/instagram-instagram/instagram-instagram-174-0-0-31-132-release/instagram-174-0-0-31-132-android-apk-download/
Errorcode:

Applying patches for HTTPS inspection (MITM)
--------------------------------------------
Using apk-mitm v0.11.1 (https://github.com/shroudedcode/apk-mitm)

[1/3] Modifying app manifest
[2/3] Replacing network security config
[3/3] Disabling certificate pinning
Scanning Smali files...
X/03D: Applied X509TrustManager#checkClientTrusted (javax) patch
X/03D: Applied X509TrustManager#checkServerTrusted (javax) patch
X/03D: Applied X509TrustManager#getAcceptedIssuers (javax) patch
X/03E: Applied HostnameVerifier#verify (javax) patch
X/0e5: Applied HostnameVerifier#verify (javax) patch
X/0HE: Applied X509TrustManager#checkClientTrusted (javax) patch
X/0HE: Applied X509TrustManager#checkServerTrusted (javax) patch
X/0HE: Applied X509TrustManager#getAcceptedIssuers (javax) patch
X/0HF: Applied X509TrustManager#checkClientTrusted (javax) patch
X/0HF: Applied X509TrustManager#checkServerTrusted (javax) patch
X/0HF: Applied X509TrustManager#getAcceptedIssuers (javax) patch
X/0Za: Applied X509TrustManager#checkClientTrusted (javax) patch
X/0Za: Applied X509TrustManager#checkServerTrusted (javax) patch
X/0Za: Applied X509TrustManager#getAcceptedIssuers (javax) patch

Successfully applied MITM patches!
--------------------------------------------
Rebuilding instagram.apk into instagram\dist
--------------------------------------------
java -jar C:\Users\Karl\.apklab\apktool_2.5.0.jar b c:\Users\Karl\Downloads\instagram --use-aapt2
I: Using Apktool 2.5.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes3 folder into classes3.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes4 folder into classes4.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes5 folder into classes5.dex...
I: Checking whether resources has changed...
I: Building resources...
W: c:\Users\Karl\Downloads\instagram\res\values-h640dp\layouts.xml:3: error: invalid value for type 'layout'. Expected a reference.
W: c:\Users\Karl\Downloads\instagram\res\values-h640dp\layouts.xml: error: file failed to compile.
W: c:\Users\Karl\Downloads\instagram\res\values-land\layouts.xml:3: error: invalid value for type 'layout'. Expected a reference.
W: c:\Users\Karl\Downloads\instagram\res\values-land\layouts.xml: error: file failed to compile.
W: c:\Users\Karl\Downloads\instagram\res\values-sw600dp\layouts.xml:3: error: invalid value for type 'layout'. Expected a reference.
W: c:\Users\Karl\Downloads\instagram\res\values-sw600dp\layouts.xml:4: error: invalid value for type 'layout'. Expected a reference.
W: c:\Users\Karl\Downloads\instagram\res\values-sw600dp\layouts.xml: error: file failed to compile.
W: c:\Users\Karl\Downloads\instagram\res\values-v22\layouts.xml:3: error: invalid value for type 'layout'. Expected a reference.
W: c:\Users\Karl\Downloads\instagram\res\values-v22\layouts.xml:4: error: invalid value for type 'layout'. Expected a reference.
W: c:\Users\Karl\Downloads\instagram\res\values-v22\layouts.xml:5: error: invalid value for type 'layout'. Expected a reference.
W: c:\Users\Karl\Downloads\instagram\res\values-v22\layouts.xml:6: error: invalid value for type 'layout'. Expected a reference.
W: c:\Users\Karl\Downloads\instagram\res\values-v22\layouts.xml:7: error: invalid value for type 'layout'. Expected a reference.
W: c:\Users\Karl\Downloads\instagram\res\values-v22\layouts.xml:8: error: invalid value for type 'layout'. Expected a reference.
W: c:\Users\Karl\Downloads\instagram\res\values-v22\layouts.xml:9: error: invalid value for type 'layout'. Expected a reference.
W: c:\Users\Karl\Downloads\instagram\res\values-v22\layouts.xml:10: error: invalid value for type 'layout'. Expected a reference.
W: c:\Users\Karl\Downloads\instagram\res\values-v22\layouts.xml:11: error: invalid value for type 'layout'. Expected a reference.
W: c:\Users\Karl\Downloads\instagram\res\values-v22\layouts.xml:12: error: invalid value for type 'layout'. Expected a reference.
W: c:\Users\Karl\Downloads\instagram\res\values-v22\layouts.xml:13: error: invalid value for type 'layout'. Expected a reference.
W: c:\Users\Karl\Downloads\instagram\res\values-v22\layouts.xml:14: error: invalid value for type 'layout'. Expected a reference.
W: c:\Users\Karl\Downloads\instagram\res\values-v22\layouts.xml:15: error: invalid value for type 'layout'. Expected a reference.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Karl\AppData\Local\Temp\brut_util_Jar_84718649865576701418041492395385499156.tmp, compile, --dir, c:\Users\Karl\Downloads\instagram\res, --legacy, -o, c:\Users\Karl\Downloads\instagram\build\resources.zip]
Rebuilding process exited with code 1```

Any Ideas whats going wrong and how to fix it?
@Surendrajat
Copy link
Member

This is an issue with apktool and APKLab uses it to decode & rebuild apk. If you check their issue tracker you will see issues like iBotPeaches/Apktool#2104 which are the same as this one. Please check their issue tracker for update.

@Surendrajat Surendrajat added the apktool Issue that are related to Apktool not APKLab label Feb 10, 2021
@Londchok
Copy link

@RandomJoe43576 Did the topic about the dummy attributes help you for layouts ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apktool Issue that are related to Apktool not APKLab
Projects
None yet
Development

No branches or pull requests

3 participants