[英]Could not resolve project :reactnativenotifications
在使用 npm 添加 react-native-notifications npm i react-native-notifications
並設置 android 平台所需的所有步驟時,仍然得到:
無法解析項目:reactnativenotifications
請按照文檔在“android/app/build.gradle”下的 android 的 build.gradle 文件中添加缺少的部分:[1]
defaultConfig {
applicationId "com.packagename.app"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
+ missingDimensionStrategy "RNNotifications.reactNativeVersion", "reactNative60" // See note below!
-
-
}
對於 0.60.x 及以上版本使用"reactNative60"
"reactNative59"
對於 0.59.x 及以下版本使用“reactNative59”。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.