Opensdk string error 521009

Hik-Connect Offline Issue Resolved When our customer adds a device to the Hik-Connect account and the APP returns device is offline, we can follow steps below to solve the problem or locate the causes. 1. Go to device to see the register status. The status can be saw on web GUI, local GUI. a) […]

Содержание

  1. Hik-Connect Offline Issue Resolved
  2. SADP Error Codes
  3. Hikvision SADP Tool Common Errors and Solutions :-
  4. 2009 device refuse to process
  5. 2011 device timed out
  6. 2015 sending error
  7. SADP pop up with error ”the software is running, please exit first” after installation
  8. 2022 The encrypted string is empty
  9. Interlogix TruVision Password Reset ( DVR, NVR, IP Camera)
  10. Hikvision OEM Password Reset Tool
  11. How to Reset Password on SADP — Hikvision
  12. 1. Reset Hikvision Password by SADP
  13. XML Key Generator Tool Ver 4.0 User Manual
  14. XML Key Generator Tool is a utility which helps you to get Encrypted XML file to unlock your IP Camera, DVR and NVR Network Devices.
  15. First you need to download SADP tool (Download Link: SADP Tool ) after downloading Right click on SADP Tool Setup file chose “Run as Administrator“ and install it, after installation complete right click on shortcut icon of SADP tool and run choosing “Run as Administrator”. (Note: — Your Network Device must be in same network to reset the password by SADP Tool)
  16. 2. Reset Hikvision Password by Hik-Connect App
  17. How to View Password Hidden Behind Asterisk
  18. How to View Password Hidden Behind Asterisk
  19. Desktop/Laptop
  20. On Google Chrome
  21. On Safari
  22. Android
  23. iPhone

Hik-Connect Offline Issue Resolved

When our customer adds a device to the Hik-Connect account and the APP returns device is offline, we can follow steps below to solve the problem or locate the causes.

1. Go to device to see the register status. The status can be saw on web GUI, local GUI.

a) If the Enable box hasn’t been checked, enable it and see the register status. Path: Configuration à Network à Advanced Settings.

On NVR 3.0: Menu-Configuration-Network-Platform Access.

On NVR 4.0: Menu-System-Network-Advanced.

b) If it has been enabled and the Register Status keeps offline, go to step 2.

2. Make sure the device has been connected to the Internet and it can connect to the Hik-Connect Server.

Go to device to see whether the IP parameters belong to LAN. The IP address, subnet mask and default gateway need to be set correctly. Path: Configuration-Network-Basic Settings-TCP/IP.

On NVR 3.0: Menu-Configuration-Network-General.

On NVR 4.0: Menu-System-Network-TCP/IP.

b) The DNS Server address is suggested to set as 8.8.8.8 or local frequently-used DNS address.

c) Try to change Server address, change dev.hik-connect.com to litedev.hik-connect.com or change litedev.hik-connect.com to dev.hik-connect.com.

d) Upgrade device to latest firmware.

3. If the Register Status is still offline, you may need to check the network.

a) Check the Hik-Connect Server accessible or not.

i. Connect your PC to the same LAN of the device.

ii. Go to windows start menu, input cmd and click Enter key.

iii. Input command ping dev.hik-connect.com and click Enter. If there is response, it means the DNS server address is correct and the Hik-Connect Server IP address is returned to the device.

If there is no response, the DNS server address need to be modified correctly.

b) Check if the fire wall blocks the connection between device and Hik-Connect Server.

i. Connect your PC to the same LAN of the device.

Go to windows start menu, input cmd and click Enter key.

iii. Input command telnet dev.hik-connect.com 8555 or telnet litedev.hik-connect.com 8666 and click Enter.

When the telnet works, it will display as the snapshot below.

v. If the telnet failed, you may need to check if there are settings on fire wall block the connection between the device and Hik-Connect server.

The Telnet function is disabled on PC as default, so it need to be enabled firstly. Path: Control Panel à All Control Panel Items à Programs and Features à Installed Updates à Turn Windows features on or off.

Источник

SADP Error Codes

Allocation of resource error

SADP not started

Get NIC info failed

Open NIC Failed

Sending Packet Failed

Get system interface failed

Device refuse to process

Install NPF failed

Device time out

Create socket failed

Bind socket failed

Join multi-cast failed

Multi-cast XML parse error

Device is locked

Device is not activated

High risk password

Device has been activated

The encrypted string is empty

Export file overdue

Long security answer

Security question number error

Load Wpcap failed

Illegal verification code

Hikvision SADP Tool Common Errors and Solutions :-

Parameter such as password, serial number, is empty.

When reset the password, imported file is empty or the file’s content has more than 512 bytes.

2009 device refuse to process

Password error, HTTP port number is invalid, IPv6 address is empty, IPv6 gateway is empty.

2011 device timed out

When SADP sends an request, and no response from the device after 10 seconds, it will give this error, in this situation we need to use Wireshark to capture the packets to analyze the response time from the device.

2015 sending error

When the IP address of the PC is changed, and SADP is not restarted, the error will occur.

SADP pop up with error ”the software is running, please exit first” after installation

When the installation directory is same as the installation package, ensure the software installation directory and installation package are not in the same directory.

2022 The encrypted string is empty

When import the XML file, and cannot find the corresponding encrypted string, the error will occur, we need restart the device and reset the password again.

Источник

Interlogix TruVision Password Reset ( DVR, NVR, IP Camera)

Reset password If an admin (not a specific user) device password is lost, contact CCTV Networking Technical Support ([email protected]) to restore the password. There are two ways to restore the password. The method to be used depends on the device and its currently installed firmware.

Software Download Link :-

To restore the default password (method 1):

1. Select the device for password reset in the main Device Manager window.

2. Click Device Manager Tools, and then click the Reset Password tool button.

3. Copy the serial number from the Device Serial No. field in the Device information panel and paste it into an email to send to [email protected] CCTV Networking Technical Support ([email protected]) will provide a security key by email.

4. Enter the security key received from CCTV Networking Technical Support ([email protected]) in the Security Code field and click OK to restore the default password. The default password is 1234.

Note: The security key provided is related to the date the serial number was sent to CCTV Networking Technical Support ([email protected]) and expires the day it was created. If the current date was not specified in the request, CCTV Networking Technical Support ([email protected]) provides a security key valid for one day following the date of the request.

To set a new password using an XML file (method 2):

1. Select the device for password reset in the main Device Manager window.

2. Click Device Manager Tools, and then click the Reset Password tool button.

3. Click the Reset Password button. 12 TruVision Device Manager User Manual

4. Click Export Reset File in the Reset Password window to save the XML file, and then email the file to CCTV Networking Technical Support ([email protected]). CCTV Networking Technical Support will provide a new XML file.

5. Save the XML file received from CCTV Networking Technical Support on the computer, click Browse, and select the new XML password file.

6. Type a new password and then confirm it in the New Password and Confirm Password fields. Click Apply.

Note: Do not restart the device after the password recovery XML file has been exported, otherwise the steps above must be repeated. The password recovery XML file expires after 48 hours.

Источник

How to Reset Password on SADP — Hikvision

1. Reset Hikvision Password by SADP

XML Key Generator Tool Ver 4.0 User Manual

XML Key Generator Tool is a utility which helps you to get Encrypted XML file to unlock your IP Camera, DVR and NVR Network Devices.

First you need to download SADP tool (Download Link: SADP Tool ) after downloading Right click on SADP Tool Setup file chose “Run as Administrator“ and install it, after installation complete right click on shortcut icon of SADP tool and run choosing “Run as Administrator”. (Note: — Your Network Device must be in same network to reset the password by SADP Tool)

After run the SADP tool, select your Network Device which need to reset.

After that click on Forgot Password Link. Export XML file and save on desktop.

Now keep SADP Tool Forgot Password windows open of SADP tool and use XML File Generator Tool v4.0

(Important Note: If you accidently close SADP Tool Forgot Password windows XML Key file will not work. You may need to generate new Exported file and use Network XML file generator v4.0 software again to get new XML Key file.)

Start XML Key Generator Tool Ver 4.0 Program.

First Screen (If you use Program within Time zone +5:30 IST you will get quick response from Key Server otherwise it can be not response or delay response.)

Fill All fields:-

1. Write your email id (This Email ID will receive XML Key file.)

2. Full Serial Number of Network Device (Copy from SADP Tool)

3. Attach Exported XML file from SADP Tool (.XML file)

Click on Generate Button and wait you will receive 2 Emails.

1. Do not download of 1st Email Attached XML file, this is just a confirmation email of Program successfully sent your XML Exported file to xml key server.

2. You will receive 2nd email from [email protected], Please download attached XML Key file to import in SADP tool for reset Network Device Password.

2. Reset Hikvision Password by Hik-Connect App

3xLogic Password Reset, ABUS Password Reset, Acegear Password Reset, Activecam Password Reset, ADJ Password Reset, Advidia Password Reset, VideoInsight Password Reset, Alarm Password Reset, Alibi Password Reset, Allnet Password Reset, Alula Password Reset, Anaveo Password Reset, Annke Password Reset, Arcdyn Password Reset, Armix Password Reset, AukooTechnology Password Reset, AventuraTechnologies Password Reset, Avue Password Reset, Cantek Password Reset, CCTVStar Password Reset, ClearWay Password Reset, CovertSecurity Password Reset, DaxNetworks Password Reset, DMP Password Reset, DodwellBMS Password Reset, DSS Password Reset, Dunlop Password Reset, DVRUnlimited Password Reset, EllipseSecurity Password Reset, Epcom Password Reset, Esypop Password Reset, Ezviz Password Reset, GlobalNetworkSecurity Password Reset, GovCommIntelligentTransportationSystems Password Reset, Grundig Password Reset, GVSSecurity Password Reset, Hinovision Password Reset, Hitachi Password Reset, Hitosino Password Reset, Honeywell Password Reset, HuntCCTV Password Reset, HyundaiSecurity Password Reset, InfinitePixels Password Reset, Inkovideo Password Reset, Innekt Password Reset, Interlogix(UTC) Password Reset, Invidtech Password Reset, IPCamTalk Password Reset, JFL Password Reset, Jlinks Password Reset, LaView Password Reset, LTS Password Reset, MercurySecurityandFacilitiesManagement Password Reset, MicroView Password Reset, Nelly’sSecurity Password Reset, NorelcoSafeCam/SpiderVue/Invezia Password Reset, Northern(Tri-Ed/Anixter) Password Reset, Novicam Password Reset, NTT Password Reset, Oculur Password Reset, A1SecurityCameras Password Reset, Onix Password Reset, Paxton Password Reset, Pnet Password Reset, PowerTechnology Password Reset, ProtectGroup Password Reset, Raster Password Reset, RemarkThermal Password Reset, RVi Password Reset, SafetyVision Password Reset, Safire Password Reset, Scati Password Reset, SecurityTronix Password Reset, SentryCCTV Password Reset, Sharp Password Reset, Siqura/TKH Password Reset, SmartCTSolutions Password Reset, SnapAV/Luma Password Reset, SpaceTechnology Password Reset, Syscom Password Reset, Technomate Password Reset, Toshiba Password Reset, Trendnet Password Reset, VantageSecurity Password Reset, VezcoCCTV Password Reset, Videoteknika Password Reset, Winic Password Reset, Xyclop Password Reset, Zicom

Источник

Desktop/Laptop

It is extremely simple to view a password hidden behind asterisks on a desktop browser. Here’s how to do it:

On Google Chrome

Follow the steps outlined below to view a password hidden behind asterisk on Google Chrome.

1. Launch Google Chrome and n avigate to the website from which you desire to view the hidden password. For example, I’m using Facebook.

2. Once the password autofills, select it and right click on it, then click on “ Inspect “.

3. This will open up Google Chrome’s Developer Tools.

  • The console should automatically be focussed on the line related to the password field.
  • If it is not, simply scroll down and find the line highlighted by Google Chrome.

5. Hit Return/Enter and on the Facebook Website, you should now be able to see the hidden password in plain text.

On Safari

The process on Safari is exactly the same, except, instead of “Inspect”, Safari’s menu will say “Inspect Element”, as shown in the screenshot below:

Android

The problem with using this technique on a mobile device like an Android or an iPhone, is simply that the mobile browsers do not have options such as “Inspect Element”. But, what they do have, is a neat little feature that allows remote USB Debugging of websites when the mobile is connected to a computer running compatible browsers.

For this Android example, I’m going to use Google Chrome, as it is one of the most used browsers on Android, and I happen to have Google Chrome on my laptop as well, which means no additional downloading required.

The steps you’ll need to follow to view a password hidden behind asterisks on an Android are given below:

1. In your Android device, enable USB Debugging through Settings->Developer Options.

2. Connect your Android device to your Laptop using a USB cable. Your phone will ask you whether or not it should trust the computer for USB Debugging; tap “Ok”.

3. Launch Google Chrome on your phone and navigate to the website from which you desire to view the hidden password. For example, I’m using Twitter.

4. Launch Google Chrome on your laptop and in the address bar, type “chrome://inspect”.

  • This will open up a window with your Android device showing up under “Devices”.
  • There will also be details about the tabs open on your phone.

5. Select “Inspect” under the tab that says “https://mobile.twitter.com”

6. This will open up the Developer Tools.

7. Press “Command + F ” to search and type “ password ” to go directly to the line corresponding to the password field.

8. Locate the field that says “type = password”, double click on it to begin editing, and replace the word “password” with “text”.

9 Hit Return/Enter and the password will now be visible in plain text, both in the Developer Tools, and on your Android phone .

iPhone

The procedure on an iPhone is easy as well, but in typical Apple fashion, can only be done with a Mac, using Safari. I know, right?

Anyway, the steps you will need to follow are:

2. On your Mac, launch Safari.

Note : You’ll first need to enable the Develop menu by going to Safari -> Preferences -> Advanced -> Show Develop menu in menubar.

3. Connect your iPhone to your Mac. Then, click on the Develop menu in Safari on your Mac.

  • You should see the name of your iPhone visible in the Develop menu.
  • Hover on it, to reveal the website you have opened on your iPhone.

  • Click on the website, and you will be able to view its HTML code on your Mac.

4. Search for “ Password ” to find the line corresponding to the password field.

5. Change the value of type=”password”, from “ password ” to “text”.

6. Hit Return/Enter and you will now be able to see the password in plain text on your iPhone.

Note : Some websites, such as banking websites, disable right clicking for security purposes, therefore this method will not work for them.

Источник

Get the error codes via OpenSDK_GetLastErrorCode and get the error code information via OpenSDK_GetLastErrorDesc. The API only returns 0 and -1 by default (except some special API). The error code of SDK is listed according to modules. Major and frequently-occurred error codes are shown below.
error code is defined in the header file of OpenNetStreamError.h.
return via information callback function, refer to header file of INS_ErrorCode.h for details.

error code format{xbbbbb}, x represents the module type of error code, bbbbb represent what the error is, the value of x is shown below:

type definition remark
0 correct condition correct
1 network exception This error is the same with network or configuration information error, so CURL ErrorCode is still available, for example, DNS is not configured.
2 user operation error User level error code. It is usually caused by improper usage of SDK by the users.
3 platform server error The error returned by OpenApi. For details, refer to error code of server port
4 system resource exception Usually caused by inadequate system resource, e.g., inadequate memory.
5 get stream exception error code of streaming module
6 method not supported SDK unsupported
7 push error push relevant error information
9 undefined error error code without specific definition

The following table shows the definition of the detailed error code value.

Description Value Definition Remark
Network Level
OPEN_SDK_COULDNT_RESOLVE_HOST 100006 unable to resolve to specified remote host Here it refers that the domain name of the platform fails to be resolved. The reason maybe that the DNS is not configured or the device is disconnected.
OPEN_SDK_COULDNT_CONNECT 100007 the remote host is unavailable Here it refers to failing to access the platform. It may be caused by incorrect platform address.
OPEN_SDK_OPERATION_TIMEOUT 100028 request timed out

The expiry time is 20s. Request timed out. Check the address configuration of the platform.

User Operation Level
OPEN_SDK_BAD_PARAMS 200001 Invalid incoming parameter of API
OPEN_SDK_SESSION_INVALID 200002 The current session doesn’t exist or has been released. incoming value of SessionId error or the Session has been deleted.
OPEN_SDK_VIDEO_RECORD_NOT_EXIST 200003 No video file exists in the specified period.
OPEN_SDK_VIDEO_RECORD_SEARCHING 200004 Searching video records…
OPEN_SDK_STOP_ALARM_REC_FAILED 200005 Failed to disable alarm.
OPEN_SDK_PERMANENT_KEY_INVALID 200006 Incorrect verificaiton code.
OPEN_SDK_PIC_DECRYPT_FAILED 200007 Failed to decode the picture.
OPEN_SDK_PIC_CONTENT_INVALID 200008 Invalid picture content.
OPEN_SDK_PIC_NO_NEED_DECRYPT 200009 The picture doesn’t need to be decoded.
OPEN_SDK_PIC_COULDNT_ALLOC_BUFFERS 200010 Failed to allocate memory of picture resources.

Insufficient memory or the picture size is too large.

EZVIZ API Level
OPEN_SDK_RESPINFO_BAD 300001 The information requested to return. json cannot resolve it. It may be caused by the configuration problem ofPlatformAddr.
OPEN_SDK_RESPINFO_INVALID 300002 Incorrect return information format of the request.
OPEN_SDK_ACCESSTOKEN_INVALID 310002 accesstoken exception or accesstoken has been expired.
OPEN_SDK_SIGNATURE_ERROR 310008 Incoming parameter error. System displaying signature error.
OPEN_SDK_USERID_PHONE_UNBIND 310014 The third-party userId and phone under APPKEY are unbound.
OPEN_SDK_CHANNEL_NOT_EXIST 320001 The channel doesn’t exist. The channel corresponds with a specific camera.
OPEN_SDK_USER_NOTOWN_DEVICE 320018 The user doesn’t have the device.
System Resource Level
OPEN_SDK_COULDNT_CREATE_THREAD 400001 Failed to create a thread.
OPEN_SDK_COULDNT_ALLOC_BUFFERS 400002 Failed to apply memory resources.
Streaming Function Level
OPEN_SDK_NS_OPERATIONCODE_FAILED 500045 Failed to get operation code. It will report this error if users enabled terminal binding.
OPEN_SDK_NS_STREAM_LIMIT 500410 Limit of streaming channel number The device connection number reaches upper limit.
OPEN_SDK_NS_DEV_NO_ONLINE 503121 Device offline
OPEN_SDK_NS_PERMANENTKEY_EXCEPTION 502012 Input key again. 1. Clear-text key and MD5 key mismatched. Verification code error.
OPEN_SDK_NS_VTDU_TIMEOUT 502021 Stream media sending or receiving signal timed out. Check the device network status. It is usually caused by network problems.
OPEN_SDK_NS_VTDU_CLIENT_TIMEOUT 502025 vtduThe client receiving response timed out.

The camera and DVR/NVR may have connection problems.

Unsupported Level
OPEN_SDK_DEV_NOT_SUPPORT 600001 Only support device of version 1.7.
OPEN_SDK_API_NO_IMPLEMENT 600002 The API is not realized.
Push message level error.
OPEN_SDK_PUSH_PARAM_ERROR 710001 Invalid incoming parameters.
OPEN_SDK_PUSH_DATA_UNINIT_ERROR 710002 The data is uninitialized. Initialize by calling the API Init first.
OPEN_SDK_PUSH_NO_REGISTER_ERROR 710003 Unregistered on the push system. Call register API first.
OPEN_SDK_PUSH_NO_MQTT_CREATE_ERROR 710004 Push object hasn’t been created.

You haven’t call create API.

OPEN_SDK_PUSH_MQTT_DISCONNECTED_ERROR 720003 sdk disconnected with push server. Network disconnected or unstable network.
OPEN_SDK_PUSH_MQTT_MAX_MESSAGES_ERROR 720004 The number of the received push messages reaches upper limit.
OPEN_SDK_PUSH_MQTT_BAD_UTF8_STRING_ERROR 720005 Invalid UTF-8 string.
OPEN_SDK_PUSH_MQTT_NULL_PARAMETER_ERROR 720006 The incoming parameter is empty pointer.
OPEN_SDK_PUSH_MQTT_VERSION_INVALID_ERROR 730001 Connection fails. Unsupported by the protocol version.
OPEN_SDK_PUSH_MQTT_IDENTIFIER_ERROR 730002 Connection fails, the only ID is incorrect.
OPEN_SDK_PUSH_MQTT_SERVER_UNAVAILABLE_ERROR 730003 Connection fails. The service doesn’t exist.
OPEN_SDK_PUSH_MQTT_BAD_USERNAME_PASSWORD_ERROR 730004 Connection fails. Incorrect mqtt username and password.
OPEN_SDK_PUSH_MQTT_NOT_AUTHORIZED_ERROR 730005 Connection fails. Unauthorized.
OPEN_SDK_PUSH_PLATFORM_RESPINFO_BAD 740001 The information returned by the request cannot be resolved normally by json. It may be caused by invalid configuration of PlatformAddr.
OPEN_SDK_PUSH_PLATFORM_RESPINFO_INVALID 740002 The format of the informaiton returned by the request is incorrect.
OPEN_SDK_PUSH_PLATFORM_SESSION_INVALID_ERROR 740003 Invalid session. The session might has been released.
OPEN_SDK_PUSH_PLATFORM_UNAUTHORIZED_ERROR 740401 Invalid certificate.

It may be caused by invalid configuration of PlatformAddr.

OPEN_SDK_PUSH_COULDNT_CREATE_THREAD 750001 Failed to create the thread.
OPEN_SDK_PUSH_COULDNT_ALLOC_BUFFERS 750002 Failed to apply memory resources.
OPEN_SDK_PUSH_COULDNT_RESOLVE_HOST 760006 The specified remote host is not been resolved. Here it refers that the platform domain fails to be resolved normally. It may be caused by unconfigured DNS or disconnected device.
OPEN_SDK_PUSH_COULDNT_CONNECT 760007 The remote host is unavailable Here it refers that the platform is inaccessible. It may be caused by the configuration error of the platform address.
OPEN_SDK_PUSH_OPERATION_TIMEOUT 760028 Request timed out. The expiry time is 20s.

Sending request to platform timed out. Failed to access the EZVIZ OPEN platform. Check the configured address or the network.

Undefined Level
OPEN_SDK_ALLOCSESSION_FAILED 900001 AllocSession failed.
OPEN_SDK_SEARCH_RECORD_FAILED 900002 Failed to search playback records.
OPEN_SDK_START_ALARM_REC_FAILED 900003 Failed to enable alarm.

Если вы ищете как runtime error исправить — вы попали по адресу.

Причин появления таковой может быть огромное множество.

Чаще всего причина состоит в том, что выходит новая версия того или иного приложения/игры и она устанавливается прямо поверх старой.

Хотя это далеко не единственная ситуация, которая может вызвать ее появление.

После того, как вы нажимаете на единственную кнопку в окне ошибки, оно просто закрывается и программа также перестает работать.

Бывает, что она все же продолжает работать, но в ней невозможно ничего сохранить. В любом случае, есть несколько способов исправить ее.

Как выглядит ошибка

Как выглядит ошибка

Способ №1. CCleaner

Самое простое решение заключается в том, чтобы воспользоваться программой для чистки реестра. Как это работает?

Все просто – чистильщик реестра, собственно, и предназначен для того, чтобы исправлять всевозможные проблемы, вроде той, которую рассматриваем мы, систематизировать файлы и добавлять то, чего недостает ему для нормальной работы.

Лучшей по праву считается CCleaner, хотя вы можете воспользоваться и другой.

Чтобы использовать ее, сделайте вот что:

Использование

После этого runtime error должен перестать появляться. Если нет, переходим к следующему решению.

Способ №2. DirectX

Вполне вероятно, что ее появление вызывают какие-то проблемы с DirectX. Возможно, какие-то файлы исполняемых библиотек были повреждены или же существующие библиотеки банально устарели.

В любом случае, лучше всего просто установить наиболее актуальные варианты и, опять же, перезагрузить компьютер.

Для этого зайдите на сайт Microsoft, на страницу с возможностью скачать DirectX. Запустите скачанный файл и выполните все действия, подразумевающие установку исполняемых библиотек.

Здесь нет никаких особых рекомендаций – обычная.

Страница загрузки DirectX

Страница загрузки DirectX

Если после установки и перезагрузки компьютера ошибка не исчезла, идем дальше.

Способ №3. Visual C++

О распространяемом пакете Visual C++ в контексте рассматриваемой проблемы можно скачать то же самое, что и о библиотеках DirectX.

Возможно, какие-то файлы были повреждены или версия устарела.

Бывают в данном случае и другие ситуации, когда установленная C++ попросту не подходит для вашей операционной системы.

Ниже приведена таблица с вариантами, которые подходят для разных версий ОС.

Таблица 1. Требуемые версии Visual C++ для Windows

Операционная система Требуемая Visual C++
Windows XP и ниже C++2008
Windows 7 C++2010
Windows 8 и 10 Наиболее актуальная на данный момент

Так вот, в зависимости от того, какая у вас ОС, вам следует скачать и инсталировать на свой компьютер C++2008 (64-бит, 32-бит), C++2010 (64-бит, 32-бит) или же C++2015 обновление 3.

Это наиболее актуальная версия по состоянию на июнь 2017 года. В будущем выйдут новые, поэтому следите за новостями на официальном сайте Microsoft.

Скачивание происходит одинаково – выбираем язык распространяемого компонента и жмем кнопку «Скачать». После этого останется запустить загруженный файл.

После этого перезагрузите компьютер.

Страница загрузки Visual C++

Страница загрузки Visual C++

Но есть определенный, правильный порядок ее инсталяции:

Сначала необходимо инсталируйте версию 2.0 (вот ссылка). Попробуйте запустить программу, в которой раньше возникала проблема, если она не исчезла, устанавливайте дальше.

Если не помогает, 4.0 (ссылка).

Наконец, если у вас Windows Vista SP2, 7 SP1, 8, 8.1, Server 2008 SP2, Server 2008 R2 SP1, Server 2012 или Server 2012 R2, установите 4.6.2 (скачать).

Скачивание происходит точно так же, как и в случае с пакетами Visual C++.

Если ничего из этого не помогает, значит, случился сбой самой операционной системы. Пригласите на дом специалиста или сдайте компьютер в сервисный центр, если это возможно.

В крайнем случае, сделайте откат системы или вовсе переустановите ее.

Что делать, если ошибка 126 «Не найден указанный модуль»?

Ошибки с кодами 126, реже 127, ссылаются на то, что «Не найден указанный модуль». Таким образом легко сделать вывод – в Windows 7, 8, 10 недостает какого-то файла. Это действительно часто означает отсутствие DLL-библиотеки, но не всегда. Дело может быть и в других неприятных неполадках с реестром или системой защиты и т. п. Вполне может быть, что все дело и в самой программе, которая этот сбой провоцирует. Мы поможем исправить ошибку (Error 126) своими силами, ничего особо сложного в этом нет. Однако, предупреждаем, что неправильные действия в реестре или при взаимодействии с драйверами могут вызвать негативные последствия для работы операционной системы.

Причины ошибки 126

Если отображается ошибка 126 «Не найден модуль» – можем сделать вывод о наличии одной из перечисленных ниже проблем:

Как исправить ошибку 126?

Мы разработали серию решений проблемы, одно из них обязано помочь, так как исправляет каждую из перечисленных проблем. Логично, что после устранения неполадки, все должно заработать правильно.

Способ 1: автоматическое исправление проблем с DLL-файлами

Есть специальная утилита, которая автоматически сканирует системные библиотеки и сравнивает их с эталоном. Если она обнаружит, что какого-то файла или нескольких, недостает, она сама их загрузит. Также происходит анализ битых, поврежденных и модифицированных файлов. Это очень удобно и быстро в сравнении с ручным способом и, что немаловажно, еще и более безопасно. На личном опыте, программа работает стабильно и не устанавливает файлы, зараженные вирусами. Однако любые манипуляции с DLL-библиотеками сложно назвать полностью безопасными.

Инструкция по устранению ошибки 126:

ошибка 126

Важное достоинство программы – она оптимизирует компьютер, увеличивая его производительность (если в системе есть какие-то проблемы с DLL). Ее можно оставить в качестве настольного софта, так как утилита решает большой спектр проблем.

Способ 2: временно отключаем антивирус

Есть большая вероятность, что ошибка 126 спровоцирована антивирусной защитой системы. Если в момент установки программы антивирус посчитал один из компонентов угрозой и заблокировал его, он будет отсутствовать, а система писать «Не найден указанный модуль». В целом желательно отключать защиту в момент установки программ, которым доверяем.

ошибка 126

Если сейчас программа заработала нормально, рекомендуем открыть антивирус и добавить в список его исключений данный софт. В противном случае со временем ошибка может вернуться, ведь антивирусная защита снова может заблокировать или удалить файл.

Важно! Для максимального результата лучше сделать полное удаление программы. Для этого можем воспользоваться iObit Uninstaller. Софт анализирует систему и ищет остатки файлов приложения, удаляя и их.

Способ 3: обновляем Microsoft NET Framework

Способ 4: переустанавливаем DirectX

Очень много DLL-файлов напрямую связаны с DirectX, поэтому есть высокая вероятность, что сообщение «Не найден указанный модуль» относится к данному программному компоненту. Его легко переустановить, так как DirectX тоже распространяет Microsoft совершенно бесплатно и для любых версий, конфигураций операционной системы. С установкой проблем быть не должно, за исключением одного момента – желательно, перед началом инсталляции софта удалить старую версию DirectX.

Способ 5: сканируем системные файлы Windows

Во всех актуальных версиях Windows есть встроенный инструмент анализа системных файлов. Он часто помогает при различных проблемах с DLL-файлами.

Как запустить системные файлы:

ошибка 126

Способ 6: восстанавливаем системные реестр

Способ 7: делаем откат Windows

Если никакие ручные способы исправления не помогают, что бывает редко, приходится обратиться к последнему методу и откатить Windows к последнему рабочему состоянию. Иногда файлы DLL могут пропадать из-за удаления программы, и вы можете столкнуться с ошибкой 126. Чтобы устранить ее, воспользуйтесь точками восстановления. Найти «Параметры восстановления» можем через поиск в Windows.

ошибка 126

Теперь ошибка с кодом 126 больше не должна беспокоить пользователя как в Windows 7, так и 8, 10. Одна из процедур практически 100% должна исправить проблему. При этом мы не рекомендуем вручную менять DLL-файл, если удалось обнаружить в каком именно проблема. Все из-за чрезмерно высокого шанса загрузить вирус.

Источники:

https://pomogaemkompu. temaretik. com/1702206922594454476/samye-legkie-sposoby-ispravit-oshibku-runtime-error/

https://gamesqa. ru/kompyutery/oshibka-126-ne-najden-ukazannyj-modul-26026/

IP CCTV Forum for IP Video, network cameras & CCTV software

  • Forums

  • Manufacturer Specific Forums

  • Hikvision

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Device error, OpenSDK stringerror 510004


  • Thread starter

    rkg


  • Start date

    Jan 23, 2022

  • #1

Hi, I have tried searching for this problem with IVMS-4200: Device error, OpenSDK string error 510004 many times a minute. I have searched the web, but I can’t find any good solution. I have tried rebooting my NVR. When I use my Hik-connect app on IOS its usually very good, but I have seen a fault message that says out of memory couple of times. If I login to my nvr through web browser there is no problem as well.

1642927928664.png

Kyle


  • #2

Hi @rkg

What model is your NVR and which firmware version is it running?
Which version of iVMS-4200 are you running?
Is this on a Windows or macOS device?

  • Thread starter
  • #3

NVR: HWN-4104MH Firmware: V4.32.110 build 211009
IiVMS-4200 version V3.6.0.6 build20210630 (iVMS says that is latest version)
OS: Windows 10

Kyle


  • #4

Annoyingly, the auto-update feature in the software isn’t that reliable — do you still get the error in V3.7.0.5?

  • Thread starter
  • #5

It’s exactly the same fault code and the same interval on the faults.

Kyle


  • #6

Where did you download that firmware from? Just as I can’t find anything more recent than V4.30.055 so am wondering if this is the problem.

  • Thread starter
  • #7

I can’t remember updating any firmware. So I guess it came with the box when I bought it a few months ago. Should I downgrade it?

Kyle


  • #8

I don’t think you need to downgrade it, it’s probably more a case of the portal not being updated.

Sorry, I’m not sure what else the issue could be :( I can’t find any other mention of that error code, so it may be specific to HiWatch devices.

If you can, I’d ask your supplier to ask Hikvision Support about the error code. Or, take it to them directly, as they’ll probably know what it means — support.uk@hikvision.com

  • Thread starter
  • #9

Thank you for the help. I tried to uninstall, reboot and reinstall. It seems like that did it for me. There has been no lost connection after that.

Kyle


  • #10

Ah great, glad you’ve sorted it and thanks for letting us know how!

  • #11

I believe there was DST bug in an older version of iVMS4200 which was fixed

Similar threads

  • Forums

  • Manufacturer Specific Forums

  • Hikvision

  • #1

Hi, i have a Hikvision DVR 7208 HQHI, everything worked find for months, now without ! any changes, IVMS 4200 (no changes done too) tell me this, when i try to watch recorded Videofiles over the IVMS client:

Hikvision DVR Playback failed Error Code open SDK String Error 105 — Playback failed

When i go over the network straight to the DVR i can watch this recorded files, on the montior that is connected to the DVR, only IVMS 4200 on the PC tell me this error.

Nothing was changed, in one moment it dosent work anymore (the playback over IVMS)
Sorry for my English, iam from Germany.
Hope you understand whats the problem.
Regards

  • #2

Hi, I am having the same issue! I just noticed that the recorded video clips listed on the right of the screen are not in chronological order (see picture below). This seems to be causing the system to throw a string error. If you narrow your time span to include only 1 clip, it will play the recorded clip.

This is only occurring on devices that are Hik-Connect, local devices (on the same LAN as the iVMS-2400 client software) work fine.

Can anyone explain where this is coming from? It was working fine until recently. Capture.PNG

Thanks. Brendan

  • #3

Hi Brendan, thats the same Problem over here, the files are not correct chronological, only by Hik devices, via Lan everything okay. Hikvision support is shxt ! No help.. wrote to UK,.com and Europe… no help !

  • #4

Hello? Can anyone on this forum help us? Are slot99 and myself the only ones having this bizarre behaviour of our iVMS clients?
Thanks.

  • #6

same here guys, new member, new install , in the uk, and installed last week,

remote playback over the internet via hik connect same error,

local lan playback no error

convinced its a hik connect issue somehow

  • #7

This is a known problem that will be fixed with Hikvisions next IVMS upgrade. The is a OpenNetStream.dll file that needs to be updated in the C:Program FilesiVMS-4200 StationiVMS-4200iVMS-4200 directory. If you email me at FredWentworth@NewEnglandcctv.com with your email, I can send you the file.
We have had to do this for every client using Hik-Connect for remote viewing/ playback in the past 6 weeks or so. Its a simple fix.

  • #8

This is a known problem that will be fixed with Hikvisions next IVMS upgrade. The is a OpenNetStream.dll file that needs to be updated in the C:Program FilesiVMS-4200 StationiVMS-4200iVMS-4200 directory. If you email me at FredWentworth@NewEnglandcctv.com with your email, I can send you the file.
We have had to do this for every client using Hik-Connect for remote viewing/ playback in the past 6 weeks or so. Its a simple fix.

Hi @FredWentworth, can you send me the file? I have the same problem!

Last edited: Feb 19, 2018

  • #9

This is a known problem that will be fixed with Hikvisions next IVMS upgrade. The is a OpenNetStream.dll file that needs to be updated in the C:Program FilesiVMS-4200 StationiVMS-4200iVMS-4200 directory. If you email me at FredWentworth@NewEnglandcctv.com with your email, I can send you the file.
We have had to do this for every client using Hik-Connect for remote viewing/ playback in the past 6 weeks or so. Its a simple fix.

Cant you just upload the file, so anyone can download?

Recommend Projects

  • React photo

    React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo

    Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo

    Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo

    TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo

    Django

    The Web framework for perfectionists with deadlines.

  • Laravel photo

    Laravel

    A PHP framework for web artisans

  • D3 photo

    D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Visualization

    Some thing interesting about visualization, use data art

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo

    Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo

    Microsoft

    Open source projects and samples from Microsoft.

  • Google photo

    Google

    Google ❤️ Open Source for everyone.

  • Alibaba photo

    Alibaba

    Alibaba Open Source for everyone

  • D3 photo

    D3

    Data-Driven Documents codes.

  • Tencent photo

    Tencent

    China tencent open source team.

This started as a TestProject community post, but on the advice of one of the commenters, I am cross-posting the issue here.


Trying to convert my .NET test project from SDK to OpenSDK. I’m getting a NullReferenceException on the following line:

this.driver = new ChromeDriver(token: DevToken, chromeOptions: options, projectName: "Foo", jobName: "Bar", disableReports: false);

Here’s what I get:

System.NullReferenceException
  HResult=0x80004003
  Message=Object reference not set to an instance of an object.
  Source=TestProject.OpenSDK
  StackTrace:
   at TestProject.OpenSDK.Internal.CallStackAnalysis.SpecFlowAnalyzer.IsSpecFlow(MethodBase method)
   at TestProject.OpenSDK.Internal.CallStackAnalysis.StackTraceHelper.<>c.<TryDetectSpecFlow>b__9_1(MethodBase m)
   at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found)
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
   at TestProject.OpenSDK.Internal.CallStackAnalysis.StackTraceHelper.TryDetectSpecFlow()
   at TestProject.OpenSDK.Drivers.BaseDriver..ctor(Uri remoteAddress, String token, DriverOptions driverOptions, String projectName, String jobName, Boolean disableReports)
   at TestProject.OpenSDK.Drivers.Web.ChromeDriver..ctor(Uri remoteAddress, String token, ChromeOptions chromeOptions, String projectName, String jobName, Boolean disableReports)
   at MyProject.Tests.Ui.UnitTest1..ctor() in C:devMYPROJECTUnitTest1.cs:line 27

What I already tried

I thought: maybe I need the TestProject.OpenSDK.SpecFlowPlugin NuGet package, so I installed that and rebuilt. Same error.

NOTE: my TestProject.SDK was working fine and launching Chrome and sending reports to the cloud dashboard…

New OpenSDK code (that fails)

UnitTest1.cs

using Microsoft.IdentityModel.Tokens;
using OpenQA.Selenium;
using System;
using System.IdentityModel.Tokens.Jwt;
using System.Linq;
using System.Security.Claims;
using System.Text;
using TestProject.OpenSDK.Drivers.Web;
using Xunit;
using Xunit.Sdk;

namespace MyProject.Tests.Ui
{
    public class UnitTest1: IDisposable
    {
        private const string DevToken = "*****REDACTED*******";

        private ChromeDriver driver;

        public UnitTest1()
        {
            var options = new OpenQA.Selenium.Chrome.ChromeOptions();
            // Browse via the browsermob-proxy instance (one of the containers in the integration test group.)
            options.AddArguments($"--proxy-server=localhost:8081");
            options.AddArguments("--headless");

            this.driver = new ChromeDriver(token: DevToken, chromeOptions: options, projectName: "MyProject.Tests.Ui", jobName: "Proof-of-concept", disableReports: false);
        }

        public void Dispose()
        {
            this.driver.Close();
            this.driver.Dispose();
        }

        [Fact]
        public void Test1()
        {
            this.driver.Navigate().GoToUrl($"http://my-project/some-path");

            driver.FindElementByClassName("some-specific-button").Click();

            Assert.True(driver.FindElements(By.ClassName("expected-confirmation-message")).Any());
        }
    }
}

MyProject.csproj

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netcoreapp2.2</TargetFramework>

    <IsPackable>false</IsPackable>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.IdentityModel.Tokens" Version="6.8.0" />
    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
    <PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.8.0" />
    <PackageReference Include="TestProject.OpenSDK" Version="0.65.0" />
    <PackageReference Include="TestProject.OpenSDK.SpecFlowPlugin" Version="0.65.0" />
    <PackageReference Include="xunit" Version="2.4.0" />
    <PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
  </ItemGroup>

</Project>

The old SDK code (that did work)

BasicTest1.cs

using Microsoft.IdentityModel.Tokens;
using OpenQA.Selenium;
using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens.Jwt;
using System.Linq;
using System.Security.Claims;
using System.Text;
using TestProject.Common.Attributes;
using TestProject.SDK;
using TestProject.SDK.Tests;
using TestProject.SDK.Tests.Helpers;

namespace MyProject.Tests.Ui
{
    [Test(Name = "Basic Test 1")]
    class BasicTest1 : IWebTest
    {
        public ExecutionResult Execute(WebTestHelper helper)
        {
            // Get driver initialized by TestProject Agent
            // No need to specify browser type, it can be done later via UI
            var driver = helper.Driver;

            driver.Navigate().GoToUrl($"http://my-project/some-path");

            driver.FindElementByClassName("some-specific-button").Click();

            if (driver.FindElements(By.ClassName("expected-confirmation-message")).Any())
                return ExecutionResult.Passed;

            return ExecutionResult.Failed;
        }
    }
}

UnitTest1.cs

using OpenQA.Selenium.Chrome;
using System;
using TestProject.Common.Enums;
using TestProject.SDK;
using Xunit;
using Xunit.Sdk;

namespace MyProject.Tests.Ui
{
    public class UnitTest1: IDisposable
    {
        private Runner runner;

        public UnitTest1()
        {
            var options = new ChromeOptions();
            // Browse via the browsermob-proxy instance (one of the containers in the integration test group.)
            options.AddArguments($"--proxy-server=localhost:8081");
            options.AddArguments("--headless");

            this.runner = new RunnerBuilder("******REDACTED*******")
                .AsWeb(AutomatedBrowserType.Chrome)
                .WithOptions(options)
                .Build();
        }

        public void Dispose()
        {
            this.runner.Dispose();
        }

        [Fact]
        public void Test1()
        {
            var result = this.runner.Run(new BasicTest1());
            if (result.ResultType == ExecutionResultType.Failed)
            {
                if (result.FailureType == ExecutionFailureType.InnerException)
                {
                    throw result.Exception;
                }
                else
                {
                    throw new XunitException(result.Message);
                }
            }
        }
    }
}

MyProject.csproj

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netcoreapp2.2</TargetFramework>

    <IsPackable>false</IsPackable>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.IdentityModel.Tokens" Version="6.8.0" />
    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
    <PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.8.0" />
    <PackageReference Include="TestProject.SDK" Version="0.65.0" />
    <PackageReference Include="xunit" Version="2.4.0" />
    <PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
  </ItemGroup>

</Project>

Во-первых, введение

WeChat SDK, его следует использовать, WeChat обмена, оплаты, используется.

Далее следуйте за мной, восстановить его источник SDK в виде компиляции компиляции модуля.

Используемые инструменты:

  • JADX: Это инструмент для анти-компиляции APK и JAR пакетов.Скачать адрес точки
  • Джеб: Это также инструмент для просмотра исходного кода APK.Скачать адрес точки
  • Android Studio

Во-вторых, процесс

2. Скачать WeChat Android SDK JAR пакета

Скачать страницу

Использование метода I является, Gradle полагается, затем берет баночку, я использую нет никакой статистической функции.

2,2 JADX Некоторые

Open JADX, открытый WeChat пакет JAR Android SDK,File -> Save as gradle project

Сохраните его в папку, увидеть каталог Src и файл builde.gradle. Я сохранил в папке WX.

2,3 Android Stuido Импорт

Измените файл build.gradle следующим образом:

apply plugin: 'com.android.library'

android {
    // Это одна из версий см установлена ​​SDK
    compileSdkVersion 23
    buildToolsVersion '25.0.0'


    lintOptions{
        abortOnError  false
    }

    defaultConfig {
        minSdkVersion 12
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }

}

Open Android-студия, создать новый проект, а затем File -> Import Module, выберите папку, только что сохраненный.

Тогда будут какие-то проблемы, давайте медленно решить

Сложение Tool версии проблема

Нажмите на первый UPDATE.

Не могу читать PACKAGENAME

Переключение на проектном, создать новый файл AndroidManifest.xml под основной папкой, содержание ниже:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.tencent.mm.opensdk">

    <application android:allowBackup="true" android:supportsRtl="true"/>

</manifest>

Затем, Build -> Make модуль ‘XX’

Тогда вы увидите кучу отчетов

2.4 Устранение ошибки кода

После Make модуля на предыдущем шаге, вы увидите кучу ошибок ниже, давайте работать

Дважды щелкните первую ошибку, найдите этот файл в com.tencent.mm.opensdk.channel.a. Причина в том, что внешние классы и внутренние имена имеют один и тот же конфликт.

Это поставить имя класса, все в порядке. Нажмите и удерживайте Ctrl + щелчок левой кнопки мыши на внутреннем классе а, вы можете увидеть, что ссылки на этот метод класса, этот внутренний класс изменяется, но и дают эти ссылки на изменения.

Мы меняем внутренний класс Abean, добавить конструктор без параметров, а затем изменить эти ссылки. Продолжить составление

Тогда подсказка: Ошибка: (15, 14) Ошибка: D не является абстрактным, а не переопределяется абстрактный метод в AsyncTask Doinbackground (Пустота …), дважды нажмите, чтобы увидеть это com.tencent.mm.opensdk.diffdev.ab Это класс ошибки. Хорошо, рядом с другим убийством: Джеб.

2.5 Использование Джеба

Создайте новый проект, зависит от SDK WeChat, в компилировать в АПК

dependencies {
   compile 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+'
}

Затем откройте Джеб, откройте эту APK, открытые байты-код, проверьте исходный код WeChat SDK (com.tencent.mm.opensdk), Открыть вышеуказанную ошибку:com.tencent.mm.opensdk.diffdev.a.d

Сравните исходный код Джеб, модификации кода: удаление дженерики, изменить метод DOINBACKGROUND, изменить метод

Класс F является также то же самое изменение, то метод F обнаружит, что внутренний класс А внутри не завершено, хорошо, давайте посмотрим, Джеб

Восстановить этот код как Java-код:

public static com.tencent.mm.opensdk.diffdev.a.f.a b(byte[] arg12) {
            String v1_1;
            long v8 = 6979321856L;
            int v7 = 52;

            a v0 = new a();
            if(arg12 != null && arg12.length != 0) {
                try {
                    v1_1 = new String(arg12, "utf-8");
                }
                catch(Exception v1) {
                    Log.e("MicroMsg.SDK.NoopingResult", String.format("parse fail, build String fail, ex = %s", v1.getMessage()));
                    v0.o = OAuthErrCode.WechatAuth_Err_NormalErr;

                    return v0;
                }

                try {
                    JSONObject v2 = new JSONObject(v1_1);
                    v0.x = v2.getInt("wx_errcode");
                    Log.d("MicroMsg.SDK.NoopingResult", String.format("nooping uuidStatusCode = %d", Integer.valueOf(v0.x)));
                    switch(v0.x) {
                        case 402: {
                            v0.o = OAuthErrCode.WechatAuth_Err_Timeout;

                        }
                        case 403: {
                            v0.o = OAuthErrCode.WechatAuth_Err_Cancel;
                            v0.o = OAuthErrCode.WechatAuth_Err_NormalErr;
                            return v0;
                        }
                        case 404: {
                            v0.o = OAuthErrCode.WechatAuth_Err_OK;

                        }
                        case 405: {
                            v0.o = OAuthErrCode.WechatAuth_Err_OK;
                            v0.w = v2.getString("wx_code");

                        }
                        case 408: {
                            v0.o = OAuthErrCode.WechatAuth_Err_OK;

                        }
                        case 500: {
                            v0.o = OAuthErrCode.WechatAuth_Err_NormalErr;

                        }
                        default: {
                            v0.o = OAuthErrCode.WechatAuth_Err_NormalErr;

                        }
                    }
                }
                catch(Exception v1) {
                    v1.printStackTrace();
                }

            }
            else {
                Log.e("MicroMsg.SDK.NoopingResult", "parse fail, buf is null");
                v0.o = OAuthErrCode.WechatAuth_Err_NetworkErr;

            }
            return v0;
        }

Следующийcom.tencent.mm.opensdk.diffdev.a.bЭтот класс. Переменные в классе А может быть изменен для общественности

Следующийcom.tencent.mm.opensdk.diffdev.a.eЭтот класс, проворная ошибка: (4, 23) Ошибка: пакетorg.apache.httpне существует

Эта проблема в том, что пакет HTTP не вводятся, а вкладка Android в build.grdle адресована следующий код. Продолжить составление

    useLibrary 'org.apache.http.legacy'

Вcom.tencent.mm.opensdk.diffdev.a.aЭтот файл является неправильным:

Error:(42, 68Предупреждение: Последний параметр используется не-списки параметров вызова для метода с переменным числом аргументов неточного типа переменного;
 Для списков параметров вызовов, использование Object
 Для не-списков параметров вызовов, использование Object[], Что также может подавить это предупреждение

Это будет удалено с параметрами новой пустотой [0].

Вcom.tencent.mm.opensdk.diffdev.a.eЭтот файл является неправильным:

Error:(31, 61Ошибка: ошибка незарегистрированного исключения IOException, должны захватить или объявить его бросить

Захват Добавить исключение

HttpResponse execute = null;
try {
    execute = defaultHttpClient.execute(httpGet);
    if (execute.getStatusLine().getStatusCode() != 200) {
        Log.e("MicroMsg.SDK.NetUtil", "httpGet fail, status code = " + execute.getStatusLine().getStatusCode());
    } else {
        bArr = EntityUtils.toByteArray(execute.getEntity());
    }
} catch (IOException e) {
    e.printStackTrace();
}

Вcom.tencent.mm.opensdk.modelmsg.WXMediaMessageЭтот класс не так:

Error:(183, 51) Ошибка: Не могу найти символ
 Символ: Метод TobyTearray ()
 Расположение: Тип OutputStream ByteArrayOutputStream

ИсправлятьOutputStreamдляByteArrayOutputStream

Вcom.tencent.mm.opensdk.openapi.MMSharedPreferencesОтчет:

Error:(140, 47) Ошибка: Не могу найти символ
 Символ: метод а (интермедиат,String)
 Расположение: ТипObjectПеременные

Просмотр в Джеб, вы можете увидеть, что класс А внутренний класс в файл Си ниже пакета Util, и мы меняемся A.A к C.a.a, импортировать пакет в папке Util.

Вcom.tencent.mm.opensdk.openapi.WXApiImplV10Отчет:

Error:(92, 33) Ошибка: Невозможно применить construnce RESP в классе RESP к данному типу;
 Потребность: расслоение
 не найдено: ни один из параметров
 Причина: Фактический список параметров и форма формы различны.

Изменение baseresp в RESP, то класс RESP, добавить конструктор без параметров бесплатно.

Error:(143, 308) Ошибка: Несовместимый тип: intнеизмененныйString

Добавьте метод String.valueOf ()

Error:(277, 45) Ошибка: Не могу найти символ
 Символ: Переменная MESSAGE
 Адрес: Переменные типа BASEREQ REQ

REQ изменяется на: ShowMessageFromwx.req Req = новый showMessageFromWX.Req (Intent.Getextras ());

Error:(445, 52) Ошибка: Невозможно применить конструктор WXWebPageObject в классе wxwebpageObject для данного типа;
 необходимость:  String
 не найдено: ни один из параметров
 Причина: Фактический список параметров и форма формы различны.

IMediaObjectизменения вWXWebpageObjectДобавление непараметрических метод строительства в классе wxwebpageObject

OK. Базовая модификация будет завершена, а затем изменить MinsdkVersion в build.gradle до 12, и римейк модуль.

В-третьих, создать новый пакет JAR

Добавьте код в нижней части build.gradle модуля источника:

task makeJar(type: Copy) {
    delete 'build/libs/test.jar'
    from('build/intermediates/bundles/debug/')
    into('build/libs/')
    include('classes.jar')
    rename('classes.jar', 'weixinsdk.jar')
}

makeJar.dependsOn(build)

Тогда на правой Gradle ,: XX Имя модуля -> Другое -> makejar Run RUN. Вы можете увидеть новый WeChat Jar пакет, составленный в соответствии с вашим исходным кодом в Build / Libs.

Полный GitHub Адрес:https://github.com/tpnet/WeiXinSDKSource-Android

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Openscmanager function call failed error ioperm sys installation failed
  • Openvpn dns resolve error
  • Openscmanager failed как исправить
  • Openvpn connection to management interface failed как исправить
  • Openscmanager failed error code 5

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии