Unable to instrument the .apk application

Originally posted by jjessop on November 06, 2017

Hello,

I recently received a new apk build from my dev. I have given him the most recent PatchServices.jar to build with, he has also ensured me that he is calling it in the OnCreate method, the app is also a debug build. By all accounts, this app has been instrumented for TC within it’s build process.

However, upon running, the app will crash stating that it was unable to be instrumented stating:

"TestComplete did not find the needed classes in the package. Possible causes: • Your package was built with the Instant Run feature enabled. Currently, such packages are not supported. Turn Instant Run off and rebuild your package. • The package is not a UI application (for example, it is a service), and it does not contain elements for functional testing with TestComplete.

TestComplete did not find the needed classes in the package.

Possible causes:

• Your package was built with the Instant Run feature enabled. Currently, such packages
are not supported. Turn Instant Run off and rebuild your package.

• The package is not a UI application (for example, it is a service), and
it does not contain elements for functional testing with TestComplete."

So I tried instrumenting the application manually in the TestedApps wizard. I got the most recent debug.keystore along with the correct alias and password/phrase. TestComplete also refuses to instrument stating the same error as above.

I have confirmed that the build does not have “Instant Run” enabled.

I have confirmed that this is definitely also a UI app (not service).

I’m at a loss as to what to do next here.
Version 12.31

Windows 10

Originally posted by Marsha_R on November 08, 2017

I would contact Support directly for this one

https://support.smartbear.com/message/?prod=TestComplete

Originally posted by hareeshreddy on December 25, 2017


jjessop​ wrote:

Hello,

I recently received a new apk build from my dev. I have given him the most recent PatchServices.jar to build with, he has also ensured me that he is calling it in the OnCreate method, the app is also a debug build. By all accounts, this app has been instrumented for TC within it’s build process.

However, upon running, the app will crash stating that it was unable to be instrumented stating:

"TestComplete did not find the needed classes in the package. Possible causes: • Your package was built with the Instant Run feature enabled. Currently, such packages are not supported. Turn Instant Run off and rebuild your package. • The package is not a UI application (for example, it is a service), and it does not contain elements for functional testing with TestComplete.

TestComplete did not find the needed classes in the package.

Possible causes:

• Your package was built with the Instant Run feature enabled. Currently, such packages
are not supported. Turn Instant Run off and rebuild your package.

• The package is not a UI application (for example, it is a service), and
it does not contain elements for functional testing with TestComplete."

So I tried instrumenting the application manually in the TestedApps wizard. I got the most recent debug.keystore along with the correct alias and password/phrase. TestComplete also refuses to instrument stating the same error as above.

I have confirmed that the build does not have “Instant Run” enabled.

I have confirmed that this is definitely also a UI app (not service).

I’m at a loss as to what to do next here.
Version 12.31

Windows 10


Marsha_R​ I’m encountering this very same crashing error while testing an application. I’ve had already contacted the support regarding the same. It has been 2 week already however got no response from the support team yet.

Originally posted by AlexKaras on December 26, 2017

Hi,

I’ve had already contacted the support […]

Just to be on the safe side: have you contacted Support via the mentioned https://support.smartbear.com/message/?prod=TestComplete form? It is essential for the initial problem submission to use the form, but not just to mail to support address.

Originally posted by Marsha_R on February 08, 2018

Yes, what AlexKaras said. I’ve never had to wait more than 24 hours for a response from Support and that’s only because of time zone difference.

Originally posted by anhvu on February 08, 2018

I got the same issue, too.

and after instrumented it manually via Android Studio, I got “Unable to load the Android application package.” when tried to deploy the app to the devices.