cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

while doing the auto instrumentation we getting error "Failed to extract the APK"

bhargav_garimel
Newcomer

error logs are

2017-05-09 12:32:32.192 INFO: APKit-Instor(1): Starting Dynatrace Auto-Instrumentation for Android version 4.2
2017-05-09 12:32:32.192 INFO: APKit-Logger(1): Log file: C:\Program Files\dynaTrace\dynaTrace Client 6.2 (x64)\client\logs\AIA_2017-05-09_12-32-32.log
2017-05-09 12:32:32.208 SEVERE: APKit-Logger(1): Failed to create a log file handler
Throwable occurred: java.nio.file.NoSuchFileException: C:\Program Files\dynaTrace\dynaTrace Client 6.2 (x64)\client\logs\AIA_2017-05-09_12-32-32.log.lck
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:79)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at sun.nio.fs.WindowsFileSystemProvider.newFileChannel(WindowsFileSystemProvider.java:115)
at java.nio.channels.FileChannel.open(FileChannel.java:287)
at java.nio.channels.FileChannel.open(FileChannel.java:335)
at java.util.logging.FileHandler.openFiles(FileHandler.java:459)
at java.util.logging.FileHandler.<init>(FileHandler.java:292)
at com.cpwr.apm.android.adk.diag.logging.AdkLogger.getFileHandler(SourceFile:42)
at com.cpwr.apm.common.diag.logging.BaseLogger.init(Unknown Source)
at com.cpwr.apm.common.diag.logging.BaseLogger.<init>(Unknown Source)
at com.cpwr.apm.android.adk.diag.logging.AdkLogger.<init>(SourceFile:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at com.cpwr.apm.common.control.BaseController.initLogger(Unknown Source)
at com.cpwr.apm.common.control.BaseController.updateConfig(Unknown Source)
at com.cpwr.apm.android.adk.AdkInstrumentor.<init>(SourceFile:76)
at com.cpwr.apm.android.adk.AdkInstrumentor.a(SourceFile:984)
at com.cpwr.apm.android.adk.AdkInstrumentor.main(SourceFile:1002)
2017-05-09 12:32:32.208 INFO: APKit-Instor(1): Dynatrace Auto-Instrumentation for Android version 4.2
2017-05-09 12:32:32.208 INFO: caa-jApkRecomp(1): Decoding D:\Manjunath\Build\New folder (2)\Housejoy-release.apk
Exception in thread "main" com.cpwr.apm.android.common.a: Failed to extract the APK.
at com.cpwr.apm.android.common.b.f(Unknown Source)
at com.cpwr.apm.android.common.b.<init>(Unknown Source)
at com.cpwr.apm.android.adk.AdkApkRecompiler.<init>(SourceFile:49)
at com.cpwr.apm.android.adk.AdkInstrumentor.a(SourceFile:93)
at com.cpwr.apm.android.adk.AdkInstrumentor.main(SourceFile:1006)
Unable to instrument "D:\Manjunath\Build\New folder (2)\Housejoy-release.apk". See log for details.

1 REPLY 1

Ensure that you do not have spaces in the adk instrumentor. Also, check you used unsigned APK for instrumentation.