Search code examples
androidproguardandroid-instrumentation

proguardDebugAndroidTest Execution Failing with FileNotFoundException for mapping.txt with -dontobfuscate flag in proguard configuration


Even though our application does not use obfuscation, we are seeing a FileNotFoundException for mapping.txt when we try to run proguardDebugAndroidTest.

We do not see this error when generating normal debug or release builds. We only see this error when attempting to make an apk for instrumentation tests:

Error:Execution failed for task ':StubHub:proguardDebugAndroidTest'. java.io.FileNotFoundException: /build/outputs/mapping/debug/mapping.txt (No such file or directory)

We are using Android Studio 1.2 and gradle plugin 1.1.3. Has anyone else run up against this issue and been able to troubleshoot it successfully? If so, how?


Solution

  • By creating the mapping.txt file in that path should be enough to solve the issue. It worked for me and is running just fine now