Cannot process Porcupine in Pixel 4a [android 11] when app targetSdkVersion is 30
See original GitHub issueI have configured Service based sample app. And it works quite good.
I have a Pixel 4a and I wanted to set targetSdkVersion to 30
and compileSdkVersion 30
.
But unfortunately I encounter with this:
com.example.androidforegroundservice I/PICOVOICE: [ERROR] invalid object cannot be used for processing.
It works as expected when I downgrade targetSdkVersion to 29
Expected behaviour
set app build.gradle file:
android {
compileSdkVersion 30
buildToolsVersion "30.0.2"
defaultConfig {
applicationId "com.example.androidforegroundservice"
minSdkVersion 15
targetSdkVersion 30 -> I want to set it to latest targetSdkVersion and Porcupine can process
.....
}
......
}
Actual behaviour
I receive the the error that I wrote above. You can check the screenshot below:
Steps to reproduce the behaviour
You can increase targetSdkVersion to 30
in order to reproduce the behaviour.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:19 (9 by maintainers)
Top Results From Across the Web
Meet Google Play's target API level requirement
New apps must target Android 12 (API level 31) or higher; except for Wear OS apps, which must target Android 11 (API level...
Read more >Turning it up to 11: Android 11 for developers
For developers, Android 11 has a ton of new capabilities. ... so they won't take effect until you change the apps' targetSdkVersion to...
Read more >Delete, disable & manage unused apps on Android
You can uninstall apps you've installed on your phone. ... You can't delete some system apps that came pre-installed on your Pixel phone....
Read more >[Update: Nov. 02] Android 11 update bugs, issues & problems ...
IST 10:20 am: Some Google Pixel 3a/3a XL and even Pixel 4a users are claiming that after the device screen is locked, the...
Read more >On-device wake word detection powered by ... - JavaRepos
Picovoice/porcupine, Porcupine Made in Vancouver, Canada by Picovoice ... Cannot process Porcupine in Pixel 4a [android 11] when app targetSdkVersion is 30.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m also facing the same issue. The android demo app and the version on the play store isn’t working on my pixel 4 xl running android 11. I tried on older devices and it worked but for the pixel 4xl, it fails
If you’re using the maven package, update to porcupine-android:1.9.1 to get the fix.