更新时间: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.
找不到参数的方法implemetation()[com.android.support:appcompat-v7:28.0.0]
'com.android.support:support-v4:27.1.1'和'com.firebaseui:firebase-ui-auth:3.2.2'
无法解析由com.twitter.sdk.android:twitter:1.0.1需要com.android.support:support-v4:21.0.0
Android dependency 'com.android.support:support-v4' has different version for the compile (26.1.0...