You have to change the build.gradle of the :PDCore and :AndroidMidi modules. At the moment they are using 17, update the BuildTools to the newest version (21.1.2). This should solve your problem.
You need a permission for recording audio. Try adding <uses-permission android:name="android.permission.RECORD_AUDIO" /> to your manifest....