-
Notifications
You must be signed in to change notification settings - Fork 539
error: cannot find symbol import android.support.v4.app.ActivityCompat #335
Comments
Can anyone suggest the fix ? Going through same problem. |
global search and replace "android.support.v4.content.ContextCompat" by "androidx.core.app.ActivityCompat" |
Is it good to migrate to AndroidX ? |
@LydiaF did you fixed it |
I have the same issue |
@deepakpapola Unfortunately not. |
@deepakpapola @LydiaF try |
Any Update on this issue, Facing the same issue in 0.59.1 |
same issues here with RN 0.59.2 and react-native-audio 4.1.3 |
@jakehon1993 many libs have a support for RN60 and still use support v4, so the issues is not with this |
I also experienced this, but only when building using gradle directly (running
or if you're using yarn
or straight up
just before you build the project. |
Maybe PR #330 fixes that |
this reason is migrate to AndroidX.you can annotation the error import.most condition the IDE can import the right package.but sometimes if the module has more than one package the IDE can't import.you just select the module which is androidx is right. |
As mentioned by @xgAnd , if in some way you choose to migrate to AndroidX, you need to select the corresponding module in which case you have to |
I didn't found any |
Version
Tell us which versions you are using ( you can see the versions in your package.json ):
react-native-audio : 4.3.0
react-native : 0.60.4
react : 16.8.6
using react-native-sound ? No
Expected behaviour :
gradlew assembleRelease
builds the Android project.Actual behaviour
Project build fails with this error:
Steps to reproduce
cd android && ./gradlew assembleRelease
The text was updated successfully, but these errors were encountered: