我正在尝试在我的应用中实现QR码扫描仪,而该二维码扫描仪已经具有其他模块的功能。
该项目位于git上,我克隆了该项目并尝试扫描QR码。并且注意到ReceiveDetections
方法无法检测到QR码。
public void ReceiveDetections(Detections detections)
{
try
{
SparseArray qrcodes = detections.DetectedItems;
if (qrcodes.Size() != 0)
{
string QRcode = ((Barcode)qrcodes.ValueAt(0)).RawValue;
ShowDetails(QRcode);
}
}
catch (Exception ex)
{
Console.WriteLine("Receivedetections" + ex);
}
}
我收到以下错误:
Local module descriptor class for com.google.android.gms.vision.dynamite not found.
Failed to retrieve remote module version: V2 version check failed
Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:0
Error creating remote native handle
com.google.android.gms.dynamite.DynamiteModule$zza: No acceptable module found. Local version is 0 and remote version is 0.
我尝试卸载Xamarin.GooglePlayServices.Vision
软件包并将其重新安装,但是没有用。任何帮助将不胜感激。