React Native throws these errors when compiling...
MainActivity.java:26:
MainActivity.java:35:
error: method does not override or implement a method from a supertype
How should these two functions be changed?
public class MainActivity extends ReactActivity {
@Override
protected boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new BeaconsAndroidPackage()
);
}
}
Thanks!
Normally you just need to comment out the @Override decorator in MainActivity.java and it should work fine. Try it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.