Recompiling of Android apk fails

Mobile Testing, Android App Testing.
WuBu
Posts: 4
Joined: Mon Jun 10, 2013 2:16 pm

Recompiling of Android apk fails

Post by WuBu » Mon Sep 09, 2013 3:34 pm

I have tried to Instrument our apk on several Android devices where I installed the 4.1.0. Service and also made sure, there is no other Version on. When instrumenting the apk, the green bar stops at appr. 70% and then results in an error with the following Details :


System.Exception: Failed to recompile the instrumented code. See details for more information: I: Smaling...
[3296,22] Error for input '"Login ': Unterminated string literal
[3302,24] Error for input '"': Unterminated string literal
[3297,4] missing STRING_LITERAL at 'invoke-static'
[3302,11] mismatched input 'Premium' expecting REGISTER
....


I understand that recompiling fails, but as our App and compiling works we have no idea how to get the app instrumented and deployed. Please help.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Recompiling of Android apk fails

Post by Support Team » Tue Sep 10, 2013 5:03 pm

Hello,

You can try to instrument the apk file using source code.
Please read the section "Instrumentation with Source Code" in our user guide.

Regards,
Bernhard
.
Image

bnharsha
Posts: 4
Joined: Fri Oct 11, 2013 12:58 pm

Re: Recompiling of Android apk fails

Post by bnharsha » Fri Oct 11, 2013 2:31 pm

Hello Bernhard

I am also facing issue with instrumenting the my APK file. I need to submit evaluation results to one of my customers by next week. Please let me know can I share the APK file with you for debugging purpose

Regards, Harsha B-N

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Recompiling of Android apk fails

Post by Support Team » Tue Oct 15, 2013 5:38 pm

Hello,

I posted an answer here: Unable to Instrument APK file.

Regards,
Markus
.
Image