title: Building decompiled APK in Android Studio
body: <p>I purchased a smart medical device by a company called Contec to help monitor my grandfather's health (specifically, a urinalysis tester - he has kidney failure). The device is great, but the Android app itself (<a href="https://play.google.com/store/apps/details?id=com.contec.phms" rel="nofollow noreferrer">com.contec.phms</a>) is abysmal - it will collect readings from the devices via Bluetooth, but there is no way to export the data to take to the doctor. I have tried contacting the app developers, but they have not responded.</p>
  <p>I am pretty handy with Linux, but I can't figure out how to interface with these products without the app. I'm not much of an Android developer, but I know enough to hack small changes to existing apps. If I could decompile this app, I'm sure I could trace the data and at least figure out a way to export to CSV. I have tried a few common decompilers, but I can't get the app to cleanly build in Android Studio. I don't know if this is against forum rules since this is for personal use, but could someone help?</p>