我正在尝试对本机运行React本机,该项目已在android上传递给我,并给出了错误消息
已经尝试将gradle.properties文件更改为使用AndroidX,但仅给出另一个错误,由于错误而已尝试更改清单文件,但也无效
错误图片:
https://i.imgur.com/CUNHb7N.png
' I wish it was possible to do in the way of:
Public Sub New(ByVal FileName As String)
If FileName = "C:\Users\Downloads\Test.jpg" Then Throw New ArgumentException("Invalid")
Image = DirectCast(Bitmap.FromFile(FileName), Bitmap)
End Sub
答案 0 :(得分:0)
您只需要在{your app path}\android\gradle.properties
文件的末尾添加这两行。
android.enableJetifier=true
android.useAndroidX=true