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

Issue: Error occurred while instrumenting #6

Open
Rhapsod opened this issue Aug 16, 2015 · 5 comments
Open

Issue: Error occurred while instrumenting #6

Rhapsod opened this issue Aug 16, 2015 · 5 comments

Comments

@Rhapsod
Copy link

Rhapsod commented Aug 16, 2015

Hi,

Thank you for contributing this useful tool : )

I tried to instrument several popular apps on Google Play and encountered similar problems:

The command line:

Exception in thread "main" java.lang.Error: Error occurred while instrumenting. exit code is 1
    at com.apposcopy.ella.EllaLauncher.instrument(EllaLauncher.java:259)
    at com.apposcopy.ella.EllaLauncher.main(EllaLauncher.java:23)

The log.txt file:

Exception in thread "main" java.lang.Error: Error in repackaging the apk.
    at com.apposcopy.app.App.updateApk(App.java:208)
    at com.apposcopy.ella.Main.main(Main.java:42)

Sample apps for repeating the error(s):

  • com.bethsoft.falloutshelter
  • com.amazon.mShop.android.shopping

Thanks!

@tingsu
Copy link

tingsu commented Jan 5, 2017

I also encountered this problem. Have you solved this? Look forward to getting some hints. Thanks!

@campiador
Copy link

campiador commented Mar 9, 2017

Same issue observed here while trying to instrument an app. It would be great if the error message was more descriptive:

Exception in thread "main" java.lang.Error: Error occurred while instrumenting. exit code is 1
at com.apposcopy.ella.EllaLauncher.instrument(EllaLauncher.java:259)
at com.apposcopy.ella.EllaLauncher.main(EllaLauncher.java:23)

For example, does the error have anything to do with the server IP?

@jwlin
Copy link

jwlin commented Aug 13, 2018

I managed to eliminate this Exception by using apktool_2.3.3.jar instead of the bin/apktool_2.0.0rc4.jar. BTW, android/debug.keystore is expired. It should be re-generated or copied from the Android Studio one.

@vuongt
Copy link

vuongt commented Oct 24, 2018

Hello, I resolved the issue by using a newer version of the apktool as suggested by @jwlin, and before instrumenting the app, I removed the content of the folder ~/Library/apktool/ (MacOs). This may due to the apktool's copy of the framework is out of date or incompatible when you instrument multiple apps consecutively. After emptying the framework dir, it will be re-created with a newer SDK version.

@wangyan841331749
Copy link

I managed to eliminate this Exception by using apktool_2.3.3.jar instead of the bin/apktool_2.0.0rc4.jar. BTW, android/debug.keystore is expired. It should be re-generated or copied from the Android Studio one.

hello, could you introduce how to use apktool_2.3.3.jar ? i dont find the way to change the apktool_2.0.0rc4.jar, thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants