Permission denied running version command when targeting Android Q
See original GitHub issueNot sure if it’s because I am running Android Q beta, or I’m doing something wrong but I am getting the following:
2019-07-26 12:29:01.320 24329-24408/com.android.testffmpeg E/FFmpeg: Exception while trying to run: [/data/user/0/com.android.testffmpeg/files/ffmpeg, -version] java.io.IOException: Cannot run program “/data/user/0/com.android.testffmpeg/files/ffmpeg”: error=13, Permission denied at java.lang.ProcessBuilder.start(ProcessBuilder.java:1050) at nl.bravobit.ffmpeg.ShellCommand.run(ShellCommand.java:15)
All I am doing is calling this function:
`
private fun versionFFmpeg() {
FFmpeg.getInstance(TestFFmpegApplication.instance.applicationContext)
.execute(arrayOf(“-version”), object : ExecuteBinaryResponseHandler() {
override fun onSuccess(message: String?) {
Timber.d(message)
}
override fun onProgress(message: String?) {
Timber.d(message)
}
})
}
`
The only setup I have in the code is this:
implementation ‘nl.bravobit:android-ffmpeg:1.1.7’
Can anyone see what it is I am missing, or perhaps there is an issue running on Android Q?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:12
- Comments:40
Top GitHub Comments
Hi, I didn’t try it myself but probably you can fix it with adding
android:requestLegacyExternalStorage="true"
to
application
in AndroidManifest.xmlJust change targetSdkVersion 29 to 28 in
build.gradle
It worked for me.