我用react-native init AwesomeProject创建了一个应用程序。
尽管按照https://facebook.github.io/react-native/docs/image.html中的说明,我无法显示gif。当我注释掉compile 'com.facebook.fresco:animated-gif:1.8.1'时,我的应用程序运行正常。
我的build.gradle依赖项部分:
dependencies {
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:23.0.1"
compile "com.facebook.react:react-native:+" // From node_modules
compile 'com.facebook.fresco:animated-gif:1.8.1' // For animated GIF support
}我使用的是Windows 10和Android仿真器,目标是8.1。当我运行react-native run-android时,我会得到一个错误"AwesomeProject已停止“。
发布于 2018-04-17 06:21:09
https://stackoverflow.com/questions/49841870
复制相似问题