6.0.0.alpha.9: rebuild error in android studio
emclab opened this issue · 2 comments
emclab commented
My RN 0.64 app upgrades the module to 6.0.0.alpha.9 and it throws error when rebuild in android studio (4.1.13). Here is the error:
C:\D\code\js\xyz_app4\node_modules\react-native-sensitive-info\android\src\main\java\dev\mcodex\RNSensitiveInfoModule.java:385: error: cannot find symbol
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
^
symbol: variable N
location: class VERSION_CODES
C:\D\code\js\xyz_app4\node_modules\react-native-sensitive-info\android\src\main\java\dev\mcodex\RNSensitiveInfoModule.java:387: error: cannot find symbol
builder.setInvalidatedByBiometricEnrollment(invalidateEnrollment);
^
symbol: method setInvalidatedByBiometricEnrollment(boolean)
location: variable builder of type Builder
C:\D\code\js\xyz_app4\node_modules\react-native-sensitive-info\android\src\main\java\dev\mcodex \RNSensitiveInfoModule.java:
uses or overrides a deprecated API.
Recompile with -Xlint:deprecation for details.
The yarn android
throws error as well.
emclab commented
After increasing the android sdk version and min sdk targeted, the error disappeared. But it surfaced again when rebuild project in android studio after installing a un-related module (native-base).
emclab commented