question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot process Porcupine in Pixel 4a [android 11] when app targetSdkVersion is 30

See original GitHub issue

I 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:

Screenshot 2020-10-16 at 10 47 55

Steps to reproduce the behaviour

You can increase targetSdkVersion to 30 in order to reproduce the behaviour.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:19 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
nanagharteycommented, Dec 1, 2020

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

0reactions
lavescommented, Apr 29, 2021

If you’re using the maven package, update to porcupine-android:1.9.1 to get the fix.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found