我从git和 <ion-card type="md" *ngFor="let item of itemsArray;let i=index;">
<ion-item (click)="likebutton(i)">
Like {{numberoflike[i]}}
</ion-item>
</ion-card>
下载了react-native项目,然后运行了react-native run-android case异常
我尝试过诸如add maven {URL“ https://maven.google.com”}之类的方法
npm install node_models
,但仍然无效
jcenter()
repositories {
// google()
maven { url "https://maven.google.com" } //react-native-video
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven { url "https://jitpack.io" } // used for MPAndroidChart
mavenLocal()
}
}
答案 0 :(得分:0)
然后我尝试编写这样的代码,它可以工作
allprojects {
repositories {
maven { url "https://jitpack.io" }
maven { url 'https://maven.google.com' }
mavenLocal()
// google()
jcenter()
maven { url "$rootDir/../node_modules/react-native/android" }
}
}
所以,为什么要这样写使我感到困惑。