Android 如何在React本机应用程序中显示gif?

Android 如何在React本机应用程序中显示gif?,android,react-native,Android,React Native,我创建了一个带有react native init AwesomeProject的应用程序 尽管按照中的说明操作,但我无法显示gif。当我注释出编译'com.facebook.fresco:animated gif:1.8.1'时,我的应用程序运行正常 我的build.gradle依赖项部分: dependencies { compile fileTree(dir: "libs", include: ["*.jar"]) compile "com.android.support:

我创建了一个带有
react native init AwesomeProject
的应用程序

尽管按照中的说明操作,但我无法显示gif。当我注释出
编译'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
}

我正在使用Windows10和一个针对8.1的Android模拟器。当我运行
react native run android
时,我收到一个错误“AwesomeProject已停止”。

您应该尝试显示.gif

这是最好的


我正在使用VSCode,因此无法访问Android Studio。我的应用程序立即崩溃。我不能使用Chrome远程调试。崩溃报告给logcat。AndroidStudio提供了一种读取日志的方法,但还有其他方法。尝试使用
adb logcat
读取堆栈跟踪。您发现问题了吗?