2017-03-06 86 views
0

我嘗試了所有在github問題上找到的替代方法。這看起來的版本不兼容的問題從源代碼構建時編譯失敗react-native-fcm

FIRMessagingModule.java:36: error: FIRMessagingModule is not abstract and does not override abstract method onActivityResult(int,int,Intent) in ActivityEventListener public class FIRMessagingModule extends ReactContextBaseJavaModule implements LifecycleEventListener, ActivityEventListener { ^ AwesomeProject\node_modules\react-native-fcm\android\src\main\java\com\evollu\react\fcm\FIRMessagingModule.java:274: error: method does not override or implement a method from a supertype @Override ^ AwesomeProject\node_modules\react-native-fcm\android\src\main\java\com\evollu\react\fcm\FIRMessagingModule.java:278: error: method does not override or implement a method from a supertype @Override ^ 3 errors :react-native-fcm:compileReleaseJavaWithJavac FAILED

陣營原生版本: 1000.0.0(編譯源)
OS:的Windows 10

回答

0

你可以嘗試更換:

( - )編譯'com.facebook.react:react-native:+'

(+)編制項目( ':ReactAndroid')

在node_modules

/反應母語-FCM /安卓/的build.gradle

+0

我回滾以正常的方式進行編譯,並且我給了一個git-upgrade然後根據我的更改以原始編譯進行編譯,並且它可以工作... –