title: PayU API Integration on Android does not work
body: <p>I have had multiple issues while integrating PayU on android. I wonder what I am missing.</p>
  
  <ol>
  <li><p>The integration expects importing projects and then adding as dependency into my android app. But the build fails if I don't select version Android 5.0.1. Does this mean that PayU wont support anything less than 5.0.1?</p></li>
  <li><p>Finally I integrated the API and added the project after making some changes to their code.</p>
  
  <p>During install</p>
  
  <pre><code>[2015-09-17 17:34:24 - app] Success!
  [2015-09-17 17:34:24 - PayU] Could not find PayU.apk!
  [2015-09-17 17:34:24 - app] Starting activity com.app.SearchFlight on device 104155f6
  [2015-09-17 17:34:25 - app] Installation failed due to invalid APK file!
  [2015-09-17 17:34:25 - app] Please check logcat output for more details.
  [2015-09-17 17:34:25 - app] Launch canceled!
  [2015-09-17 17:34:27 - app] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.mcruiseon.app/com.app.SearchFlight }
  </code></pre>
  
  <p>After launch</p>
  
  <pre><code>09-17 17:34:44.526: E/AndroidRuntime(24140): FATAL EXCEPTION: main
  09-17 17:34:44.526: E/AndroidRuntime(24140): Process: com.mcruiseon.app, PID: 24140
  09-17 17:34:44.526: E/AndroidRuntime(24140): java.lang.NoClassDefFoundError: com.payu.sdk.PayU
  09-17 17:34:44.526: E/AndroidRuntime(24140):    at com.app.SearchFlight.onClick(SearchFlight.java:380)
  09-17 17:34:44.526: E/AndroidRuntime(24140):    at android.view.View.performClick(View.java:4444)
  09-17 17:34:44.526: E/AndroidRuntime(24140):    at android.view.View$PerformClick.run(View.java:18457)
  09-17 17:34:44.526: E/AndroidRuntime(24140):    at android.os.Handler.handleCallback(Handler.java:733)
  09-17 17:34:44.526: E/AndroidRuntime(24140):    at android.os.Handler.dispatchMessage(Handler.java:95)
  09-17 17:34:44.526: E/AndroidRuntime(24140):    at android.os.Looper.loop(Looper.java:136)
  09-17 17:34:44.526: E/AndroidRuntime(24140):    at android.app.ActivityThread.main(ActivityThread.java:5113)
  09-17 17:34:44.526: E/AndroidRuntime(24140):    at java.lang.reflect.Method.invokeNative(Native Method)
  09-17 17:34:44.526: E/AndroidRuntime(24140):    at java.lang.reflect.Method.invoke(Method.java:515)
  09-17 17:34:44.526: E/AndroidRuntime(24140):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
  09-17 17:34:44.526: E/AndroidRuntime(24140):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
  09-17 17:34:44.526: E/AndroidRuntime(24140):    at dalvik.system.NativeStart.main(Native Method)
  09-17 17:34:46.316: I/Process(24140): Sending signal. PID: 24140 SIG: 9
  </code></pre></li>
  </ol>
  
  <p>What am I missing here? Is <a href="https://github.com/PayU/paytouch-android" rel="nofollow">this</a> their latest version?</p>
  
  <p><strong>Solution</strong></p>
  
  <p>I moved away from PayU. I wonder how companies survive with bugs in their <code>getting started</code>.</p>