You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to run react-native run-android , got this error:
.../android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:79: error: constructor JSharePackage in class JSharePackage cannot be applied to given types;
new JSharePackage(),
^
required: boolean,boolean
found: no arguments
reason: actual and formal argument lists differ in length
1 error
I find it caused by the RN 0.61.5 is auto-link, the auto generated class PackageList.java is as below:
public ArrayList<ReactPackage> getPackages() {
return new ArrayList<>(Arrays.<ReactPackage>asList(
new MainReactPackage(mConfig),
new JPushPackage(),
new JSharePackage(),
...
));
}
The JSharePackage should be JSharePackage(boolean, boolean), but the auto generated code is without parameter, could you please help with this issue? Thanks!
The text was updated successfully, but these errors were encountered:
When I try to run react-native run-android , got this error:
I find it caused by the RN 0.61.5 is auto-link, the auto generated class PackageList.java is as below:
The JSharePackage should be JSharePackage(boolean, boolean), but the auto generated code is without parameter, could you please help with this issue? Thanks!
The text was updated successfully, but these errors were encountered: