且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

找不到 com.android.support:support-v4:23.2.1

更新时间:2021-09-23 21:36:45

为了完成 Tonithy 的回答 - .jar 可能还不够,你需要复制两个完整的目录,否则 gradle 会抱怨丢失的 .aar.在这种情况下,我认为那些是由 Android Studio 安装的:{USER}/Library/Android/sdk/extras/android/m2repository/com/android/support/support-v4/23.2.1/

To complete Tonithy's answer - the .jar may not be enough, you need to copy two whole directories, otherwise gradle will complain for the missing .aar. In this case, I think that those were installed by Android Studio: {USER}/Library/Android/sdk/extras/android/m2repository/com/android/support/support-v4/23.2.1/

并且不要忘记依赖项:{USER}/Library/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/23.2.1/

我在升级到 react-native 0.30 时遇到了完全相同的问题,解决了这个问题.

I had exactly the same problem while upgrading to react-native 0.30, that solved the issue.