beefe / react-native-picker

A Native Picker with high performance.
1.75k stars 785 forks source link

Task :react-native-picker:compileReleaseJavaWithJavac FAILED #412

Open frontend-qin opened 4 years ago

frontend-qin commented 4 years ago

Task :react-native-picker:compileReleaseJavaWithJavac FAILED D:\code_registy\qiye_app\node_modules\react-native-picker\android\src\main\java\com\beefe\picker\PickerViewModule.java:9: 错误: 程序包android.support.annotation不存在 import android.support.annotation.Nullable; ^ D:\code_registy\qiye_app\node_modules\react-native-picker\android\src\main\java\com\beefe\picker\PickerViewModule.java:533: 错误: 找不到符号 @Nullable WritableMap params) { ^ 符号: 类 Nullable 位置: 类 PickerViewModule 注: D:\code_registy\qiye_app\node_modules\react-native-picker\android\src\main\java\com\beefe\picker\PickerViewModule.java使用或覆盖了已过时的 API。 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 2 个错误

finghtingjie commented 4 years ago

react-native-picker\android\src\main\java\com\beefe\picker\PickerViewModule.java:9 把第九行改为 import androidx.annotation.Nullable; 然后找到react-native-picker里的build.gradle node_modules/react-native-picker/android/build.gradle 修改 compileSdkVersion 29 buildToolsVersion "29.0.2" targetSdkVersion 29 这三个版本改成你自己项目里android目录下的gradle里buildscript的版本号一致就行了。

Arnav7501 commented 1 year ago

answer in english please?