Mobile QA Zone

A Mobile Application Testing Community

Hi,

APK instrumentation using MT getting failed, here are logs.

System.getProperty("java.home") = C:\Program Files\Java\jdk1.8.0_40\jre
Instrumenting C:\Users\gur33702\Desktop\IPS\Android\test build\ips.android.app-0.0.1-SNAPSHOT.apk using C:\Users\gur33702\AppData\Local\Temp\tools_AndroidInstrumentor1432014152174\tools\mtagent\monkeytalk-agent.jar

Unpacking tools into C:\Users\gur33702\AppData\Local\Temp\tools_AndroidInstrumentor1432014152174\tools

Analyzing package Step 1 of 2

Unbundle started in C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1

Trying to exec APK Tool: C:\Program Files\Java\jdk1.8.0_40\jre\bin\java -jar C:\Users\gur33702\AppData\Local\Temp\tools_AndroidInstrumentor1432014152174\tools\apktool\apktool.jar d C:\Users\gur33702\Desktop\IPS\Android\test build\ips.android.app-0.0.1-SNAPSHOT.apk

Unbundle completed with exit code 0

Unbundle output:
I: Using Apktool 2.0.0-848f0d-SNAPSHOT on ips.android.app-0.0.1-SNAPSHOT.apk
I: Loading resource table...
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\gur33702\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Mocking 9-Patch Decode: "drawable-hdpi/common_signin_btn_text_pressed_light.9.png".
I: Mocking 9-Patch Decode: "drawable-hdpi/common_signin_btn_icon_focus_light.9.png".
I: Mocking 9-Patch Decode: "drawable-hdpi/common_signin_btn_icon_disabled_focus_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-mdpi/common_signin_btn_text_focus_light.9.png".
I: Mocking 9-Patch Decode: "drawable-xhdpi/common_signin_btn_icon_pressed_light.9.png".
I: Mocking 9-Patch Decode: "drawable-xxhdpi/common_signin_btn_text_normal_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-mdpi/common_signin_btn_icon_disabled_light.9.png".
I: Mocking 9-Patch Decode: "drawable-xxhdpi/common_signin_btn_text_focus_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-hdpi/common_signin_btn_icon_disabled_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-hdpi/common_signin_btn_icon_disabled_focus_light.9.png".
I: Mocking 9-Patch Decode: "drawable-xhdpi/common_signin_btn_text_disabled_focus_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-xhdpi/common_signin_btn_text_disabled_focus_light.9.png".
I: Mocking 9-Patch Decode: "drawable-xhdpi/common_signin_btn_icon_focus_light.9.png".
I: Mocking 9-Patch Decode: "drawable-hdpi/common_signin_btn_text_normal_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-mdpi/common_signin_btn_icon_disabled_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-xxhdpi/common_signin_btn_icon_disabled_focus_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-xxhdpi/common_signin_btn_icon_pressed_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-xhdpi/common_signin_btn_icon_disabled_focus_light.9.png".
I: Mocking 9-Patch Decode: "drawable-xxhdpi/common_signin_btn_text_normal_light.9.png".
I: Mocking 9-Patch Decode: "drawable-xxhdpi/common_signin_btn_icon_pressed_light.9.png".
I: Mocking 9-Patch Decode: "drawable-xxhdpi/common_signin_btn_icon_normal_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-hdpi/common_signin_btn_icon_focus_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-xhdpi/common_signin_btn_icon_normal_light.9.png".
I: Mocking 9-Patch Decode: "drawable-xhdpi/common_signin_btn_text_disabled_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-mdpi/common_signin_btn_text_disabled_focus_light.9.png".
I: Mocking 9-Patch Decode: "drawable-xhdpi/common_signin_btn_text_normal_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-xhdpi/common_signin_btn_icon_normal_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-hdpi/common_signin_btn_icon_normal_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-xxhdpi/common_signin_btn_text_disabled_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-xxhdpi/common_signin_btn_icon_normal_light.9.png".
I: Mocking 9-Patch Decode: "drawable-mdpi/common_signin_btn_text_disabled_focus_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-mdpi/common_signin_btn_text_focus_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-mdpi/common_signin_btn_icon_disabled_focus_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-xxhdpi/common_signin_btn_icon_disabled_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-xxhdpi/common_signin_btn_icon_disabled_light.9.png".
I: Mocking 9-Patch Decode: "drawable-xhdpi/common_signin_btn_text_pressed_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-mdpi/common_signin_btn_text_disabled_light.9.png".
I: Mocking 9-Patch Decode: "drawable-xhdpi/common_signin_btn_icon_pressed_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-hdpi/common_signin_btn_icon_pressed_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-hdpi/common_signin_btn_text_focus_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-xhdpi/common_signin_btn_text_focus_light.9.png".
I: Mocking 9-Patch Decode: "drawable-xxhdpi/common_signin_btn_icon_focus_light.9.png".
I: Mocking 9-Patch Decode: "drawable-mdpi/common_signin_btn_icon_normal_light.9.png".
I: Mocking 9-Patch Decode: "drawable-mdpi/common_signin_btn_icon_focus_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-mdpi/common_signin_btn_text_disabled_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-hdpi/common_signin_btn_icon_normal_light.9.png".
I: Mocking 9-Patch Decode: "drawable-xxhdpi/common_signin_btn_text_disabled_focus_light.9.png".
I: Mocking 9-Patch Decode: "drawable-xxhdpi/common_signin_btn_text_disabled_light.9.png".
I: Mocking 9-Patch Decode: "drawable-mdpi/common_signin_btn_icon_disabled_focus_light.9.png".
I: Mocking 9-Patch Decode: "drawable-xxhdpi/common_signin_btn_text_disabled_focus_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-xhdpi/common_signin_btn_icon_focus_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-hdpi/common_signin_btn_text_normal_light.9.png".
I: Mocking 9-Patch Decode: "drawable-hdpi/common_signin_btn_text_disabled_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-mdpi/common_signin_btn_text_normal_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-xhdpi/common_signin_btn_text_pressed_light.9.png".
I: Mocking 9-Patch Decode: "drawable-xhdpi/common_signin_btn_text_disabled_light.9.png".
I: Mocking 9-Patch Decode: "drawable-xxhdpi/common_signin_btn_text_pressed_light.9.png".
I: Mocking 9-Patch Decode: "drawable-xhdpi/common_signin_btn_icon_disabled_focus_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-xhdpi/common_signin_btn_icon_disabled_light.9.png".
I: Mocking 9-Patch Decode: "drawable-hdpi/common_signin_btn_text_focus_light.9.png".
I: Mocking 9-Patch Decode: "drawable-mdpi/common_signin_btn_text_pressed_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-xxhdpi/common_signin_btn_icon_disabled_focus_light.9.png".
I: Mocking 9-Patch Decode: "drawable-mdpi/common_signin_btn_icon_pressed_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-xhdpi/common_signin_btn_text_normal_light.9.png".
I: Mocking 9-Patch Decode: "drawable-mdpi/common_signin_btn_icon_focus_light.9.png".
I: Mocking 9-Patch Decode: "drawable-mdpi/common_signin_btn_icon_pressed_light.9.png".
I: Mocking 9-Patch Decode: "drawable-xhdpi/common_signin_btn_text_focus_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-xxhdpi/common_signin_btn_text_focus_light.9.png".
I: Mocking 9-Patch Decode: "drawable-hdpi/common_signin_btn_icon_disabled_light.9.png".
I: Mocking 9-Patch Decode: "drawable-mdpi/common_signin_btn_text_pressed_light.9.png".
I: Mocking 9-Patch Decode: "drawable-xxhdpi/common_signin_btn_icon_focus_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-mdpi/common_signin_btn_icon_normal_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-hdpi/common_signin_btn_text_disabled_focus_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-hdpi/common_signin_btn_text_disabled_light.9.png".
I: Mocking 9-Patch Decode: "drawable-hdpi/common_signin_btn_text_pressed_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-xxhdpi/common_signin_btn_text_pressed_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-hdpi/common_signin_btn_text_disabled_focus_light.9.png".
I: Mocking 9-Patch Decode: "drawable-hdpi/common_signin_btn_icon_pressed_light.9.png".
I: Mocking 9-Patch Decode: "drawable-xhdpi/common_signin_btn_icon_disabled_dark.9.png".
I: Mocking 9-Patch Decode: "drawable-mdpi/common_signin_btn_text_normal_light.9.png".
I: Decoding values */* XMLs...
I: Baksmaling...
Cleaning up unclosed ZipFile for archive C:\Users\gur33702\apktool\framework\1.apk
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...


Generated project directory: ips.android.app-0.0.1-SNAPSHOT

Getting android target from the given apk manifest

AndroidTarget defined on manifest is = 'android-21', verifying if is installed on the given sdk.

androidTarget= android-21

Analyzing package Step 2 of 2

Dex started: C:\Users\gur33702\Desktop\IPS\Android\test build\ips.android.app-0.0.1-SNAPSHOT.apk

Dex completed with exit code 0

Dex output: dex2jar C:\Users\gur33702\Desktop\IPS\Android\test build\ips.android.app-0.0.1-SNAPSHOT.apk -> ips.android.app-0.0.1-SNAPSHOT-dex2jar.jar


Updating package Step 1 of 2

android update project begins: [C:\android\adt-bundle-windows-x86_64\sdk\tools\android.bat, update, project, --target, android-21, --path, .]

android update project completed with exit code 0

android update project output:
Updated and renamed default.properties to project.properties
Updated local.properties
No project name specified, using Activity name 'InitialDownloadActivity'.
If you wish to change it, edit the first line of build.xml.
Added file C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\build.xml
Added file C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.


Added permission for GET_TASKS

checking for compatibility libs...

Analyzing package Step 2 of 2

build of instrumented project begins...

Using android target= android-21

Building with command line: [C:\Users\gur33702\AppData\Local\Temp\tools_AndroidInstrumentor1432014152174\tools\ant\bin\ant.bat, -DAPKJAR_DEX=C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\ips.android.app-0.0.1-SNAPSHOT-dex2jar.jar, -DMTAGENT=C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\libs\monkeytalk-agent.jar, -DERROR_LEVEL=ignore, -DASPECTJ_HOME=C:\Users\gur33702\AppData\Local\Temp\tools_AndroidInstrumentor1432014152174\tools\AspectJ, -DANDROID_HOME=C:\android\adt-bundle-windows-x86_64\sdk, -DPROJECT_NAME=ips.android.app-0.0.1-SNAPSHOT, instrument_apk]

Build completed with exit code -1

Build output:
Buildfile: C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\build.xml

weave_aspects:
[iajc] warning at C:\Users\gur33702\AppData\Local\Temp\tools_AndroidInstrumentor1432014152174\tools\AspectJ\lib\aspectjrt.jar::0 duplicate resource: 'org/'
[move] Moving 1 file to C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\libs

-set-mode-check:

-set-debug-files:

-check-env:
[checkenv] Android SDK Tools Revision 24.2.0
[checkenv] Installed at C:\android\adt-bundle-windows-x86_64\sdk

-setup:
[echo] Project Name: ips.android.app-0.0.1-SNAPSHOT
[gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
[echo] Resolving Build Target for ips.android.app-0.0.1-SNAPSHOT...
[gettarget] Project Target: Android 5.0.1
[gettarget] API level: 21
[gettarget] WARNING: No minSdkVersion value set. Application will install on all Android versions.
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\bin
[mkdir] Created dir: C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\bin\res
[mkdir] Created dir: C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\bin\rsObj
[mkdir] Created dir: C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\bin\rsLibs
[mkdir] Created dir: C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\gen
[mkdir] Created dir: C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\bin\classes
[mkdir] Created dir: C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for ips.android.app-0.0.1-SNAPSHOT...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:

-post-compile:

-obfuscate:

-dex:
[dex] input: C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\bin\classes
[dex] input: C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\libs\weaved.jar
[dex] input: C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\libs\monkeytalk-agent.jar
[dex] Pre-Dexing C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\libs\weaved.jar -> weaved-8090bf52338798754ce0bcaa6159cd0e.jar
[dx]
[dx] UNEXPECTED TOP-LEVEL ERROR:
[dx] java.lang.OutOfMemoryError: Java heap space
[dx] at java.util.BitSet.initWords(BitSet.java:166)
[dx] at java.util.BitSet.<init>(BitSet.java:161)
[dx] at com.android.dx.ssa.SsaMethod.bitSetFromLabelList(SsaMethod.java:137)
[dx] at com.android.dx.ssa.SsaBasicBlock.newFromRop(SsaBasicBlock.java:157)
[dx] at com.android.dx.ssa.SsaMethod.convertRopToSsaBlocks(SsaMethod.java:173)
[dx] at com.android.dx.ssa.SsaMethod.newFromRopMethod(SsaMethod.java:103)
[dx] at com.android.dx.ssa.SsaConverter.convertToSsaMethod(SsaConverter.java:44)
[dx] at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:98)
[dx] at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:72)
[dx] at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:299)
[dx] at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:139)
[dx] at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:94)
[dx] at com.android.dx.command.dexer.Main.processClass(Main.java:682)
[dx] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:634)
[dx] at com.android.dx.command.dexer.Main.access$600(Main.java:78)
[dx] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:572)
[dx] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
[dx] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
[dx] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
[dx] at com.android.dx.command.dexer.Main.processOne(Main.java:596)
[dx] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498)
[dx] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264)
[dx] at com.android.dx.command.dexer.Main.run(Main.java:230)
[dx] at com.android.dx.command.dexer.Main.main(Main.java:199)
[dx] at com.android.dx.command.Main.main(Main.java:103)

BUILD FAILED
C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\build_master.xml:892: The following error occurred while executing this line:
C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\build_master.xml:894: The following error occurred while executing this line:
C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\build_master.xml:906: The following error occurred while executing this line:
C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\build_master.xml:283: null returned: 3

Total time: 1 minute 28 seconds
: ERROR: Process exited with an error: 1 (Exit value: 1)

instrumented APK file was not created at: C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\bin\ips.android.app-0.0.1-SNAPSHOT-debug.apk

Error instrumenting apk 'C:\Users\gur33702\Desktop\IPS\Android\test build\ips.android.app-0.0.1-SNAPSHOT.apk': instrumented APK file was not created at: C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\bin\ips.android.app-0.0.1-SNAPSHOT-debug.apk

com.gorillalogic.monkeytalk.instrumentor.android.AndroidInstrumentor$InstrumentationException: instrumented APK file was not created at: C:\Users\gur33702\AppData\Local\Temp\tmp_AndroidInstrumentor1432014152173_1\ips.android.app-0.0.1-SNAPSHOT\bin\ips.android.app-0.0.1-SNAPSHOT-debug.apk
at com.gorillalogic.monkeytalk.instrumentor.android.AndroidInstrumentor.copyInstrumentedApk(AndroidInstrumentor.java:244)
at com.gorillalogic.monkeytalk.instrumentor.android.AndroidInstrumentor.beginInstrumentation(AndroidInstrumentor.java:173)
at com.gorillalogic.monkeytalk.instrumentor.android.AndroidInstrumentor.instrumentApk(AndroidInstrumentor.java:130)
at com.gorillalogic.monkeytalk.ide.instrumentor.InstrumentApkAction$InstrumentApkJob.run(InstrumentApkAction.java:137)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

Please help on this.

Views: 157

© 2019   Created by Anurag Khode.   Powered by

Badges  |  Report an Issue  |  Terms of Service

Welcome to Mobile QA Zone, a Next Generation Software Testing Community.Invite your friends to join this community.Write to us to become a featured member.