Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Please upgrade/downgrade ArduinoJSON #975

Open
nc9710 opened this issue Nov 2, 2018 · 24 comments
Open

ERROR: Please upgrade/downgrade ArduinoJSON #975

nc9710 opened this issue Nov 2, 2018 · 24 comments
Labels
help wanted Requesting support pinned

Comments

@nc9710
Copy link

nc9710 commented Nov 2, 2018

Having an error when compiling, ArduinoJSON is v5. Please help.

WARNING: Category '' in library ArduinoJson is not valid. Setting to 'Uncategorized'
esp8266_deauther:21:2: error: #error Please upgrade/downgrade ArduinoJSON library to version 5!

 #error Please upgrade/downgrade ArduinoJSON library to version 5!

  ^

esp8266_deauther:24:17: error: oui.h: No such file or directory

 #include "oui.h"

                 ^

compilation terminated.

exit status 1
#error Please upgrade/downgrade ArduinoJSON library to version 5!
@mrohit2011
Copy link

I am too facing the same issue.

@forseenink3238
Copy link

forseenink3238 commented Nov 29, 2018

Me too but the source Is actually having a problem

@MartieTheSmartie
Copy link

Same problem @spacehuhn is this fixable?

@spacehuhn
Copy link
Collaborator

The obvious fix is to comment out the 3 lines (17,21,22) that are causing the error:
https://github.com/spacehuhn/esp8266_deauther/blob/master/esp8266_deauther/esp8266_deauther.ino#L17

But you still have to install the correct ArduinoJSON library version!
Check the Arduino library manager, your Arduino library folder and select the right board (under deauther not esp8266 section).

@spacehuhn
Copy link
Collaborator

Check your Arduino library folder (C:\Users\user\Documents\Arduino\libraries) and delete the ArduinoJSON folder if it exists.
If the library in there is the wrong version, you might not be able to up/downgrade it from the Arduino library manager, so you have to delete it maybe.
The problem is that Arduino gives priority to the libraries in your Documents\Arduino folder instead of the one that comes with the deauther pboard ackage.

Pro Tip: Read the error message carefully! It usually tells you the error 😉

@spacehuhn spacehuhn changed the title Category '' in library ArduinoJson is not valid. Setting to 'Uncategorized' ERROR: Please upgrade/downgrade ArduinoJSON Jan 6, 2019
@Cubensiss
Copy link

In this folder is not ArduinoJSON folder only readmme datei

@iomega25
Copy link

iomega25 commented Jan 9, 2019

esp8266_deauther:33:2: error: #error Please upgrade/downgrade ArduinoJSON library to version 5!

 #error Please upgrade/downgrade ArduinoJSON library to version 5!

  ^

esp8266_deauther:34:2: error: #endif without #if

 #endif

  ^

In file included from sketch\Settings.h:11:0,

                 from D:\esp8266_deauther-master\esp8266_deauther\esp8266_deauther.ino:39:

A_config.h:7:24: error: SH1106Wire.h: No such file or directory

 #include "SH1106Wire.h"

                        ^

compilation terminated.

exit status 1
#error Please upgrade/downgrade ArduinoJSON library to version 5!

WARNING: Category '' in library ArduinoJson is not valid. Setting to 'Uncategorized'
esp8266_deauther:33:2: error: #error Please upgrade/downgrade ArduinoJSON library to version 5!

 #error Please upgrade/downgrade ArduinoJSON library to version 5!

  ^

esp8266_deauther:34:2: error: #endif without #if

 #endif

  ^

In file included from sketch\Settings.h:11:0,

                 from D:\esp8266_deauther-master\esp8266_deauther\esp8266_deauther.ino:39:

A_config.h:7:24: error: SH1106Wire.h: No such file or directory

 #include "SH1106Wire.h"

                        ^

compilation terminated.

exit status 1
#error Please upgrade/downgrade ArduinoJSON library to version 5!

please help

@tobozo
Copy link
Collaborator

tobozo commented Jan 9, 2019

I think the error message is trying to tell you to do this :

image

@tobozo tobozo pinned this issue Jan 10, 2019
@pjvander
Copy link

Quick note about a mistake I made, if you're still having trouble. I had a newer ESP8266 board installed (2.5.0b I think) when I installed ArduinoJson. Went back and installed 2.0.0 but was still having issues with ArduinoJson until I removed/re-added it. HTH

@FaroJoaoFaro
Copy link

Hello
When I go to the Arduino Library I don't have ArduinoJson
What can I do?

@sarimbinwaseem
Copy link

Check your Arduino library folder (C:\Users\user\Documents\Arduino\libraries) and delete the ArduinoJSON folder if it exists.
If the library in there is the wrong version, you might not be able to up/downgrade it from the Arduino library manager, so you have to delete it maybe.
The problem is that Arduino gives priority to the libraries in your Documents\Arduino folder instead of the one that comes with the deauther pboard ackage.

Pro Tip: Read the error message carefully! It usually tells you the error 😉

Still not working.....
What I have done...

  1. Deleted the JSON folder from Documents/Arduino
  2. Downloaded Arduino JSON V 5.0.0 from page: https://github.com/bblanchon/ArduinoJson/releases?after=v5.1.0-beta.1
  3. Included in IDE.
  4. Selected Node MCU 12E from Deauther Module section
    But still problem is there..

@sarimbinwaseem
Copy link

sarimbinwaseem commented Jan 29, 2019

Hello
When I go to the Arduino Library I don't have ArduinoJson
What can I do?

Download it from https://github.com/bblanchon/ArduinoJson/releases?after=v5.1.0-beta.1
and add it to Documents/Arduino then go to sketch tab in Arduino IDE and include it from there..

@labomb
Copy link

labomb commented Feb 11, 2019

In my case, I've determined that the problem was that the deauther board package that is required to be installed via the board manager (http://phpsecu.re/esp8266/package_deauther_index.json) includes the ArduinoJson library. On my Windows system, it was found here after installation:

%USERPROFILE%\AppData\Local\Arduino15\packages\deauther\hardware\esp8266\2.0.0-deauther\libraries

I deleted the ArduinoJson directory located there, and then installed the latest version 5 iteration (in my case, version 5.13.4) via the IDE Library Manager . This will install the ArduinoJson lib in your Documents folder (specifically, %USERPROFILE%\Documents\Arduino\libraries).

Oddly, the ArduinoJson library included with the deauther board package appears to be a valid version (5.13.0)... but I still got the upgrade/downgrade error message until it was deleted. Haven't had an issue since.

@tobozo
Copy link
Collaborator

tobozo commented Feb 15, 2019

@labomb @jumblies thanks for reporting this, the deauther SDK is now bundled with ArduinoJSON 5.13.14

you will need to remove/reinstall the deauther SDK from the boards manager to see the effects though

can you please confirm this action fixed the issue ?

@labomb
Copy link

labomb commented Feb 15, 2019

@tobozo that took care of the problem. I removed the locally installed ArduinoJson lib and removed/reinstalled the deauth board package as requested and it appears that the updated ArduinoJson library that is now bundled works fine... no version errors during build. Thanks for the update.

@nc9710
Copy link
Author

nc9710 commented Mar 22, 2019

Followed advice by spacehuhn and resolved issue. I also deleted previously installed libraries which got rid of some warnings I had while compiling. Also, a quick work around (if engaging in the deauther project) is to download the latest bin file and use the ESP8266Flasher.

@tobozo tobozo unpinned this issue May 21, 2019
@tobozo tobozo pinned this issue May 21, 2019
@tytower
Copy link

tytower commented Aug 18, 2019

Importantly for those installing on Arduino , now until they change to ver 6 you can install the Arduinojson version 5 but the error message then will tell you you have 2 Arduinojson libraries and importantly will give you the address of the version 6 it tried to use . Note that directory address down ,go there and delete the whole file first then restart.

@Scooby2001
Copy link

Scooby2001 commented Nov 16, 2019

Hello there,
i checked every setting. Downgraded ArduinoJson library to version 5.13.4.
I tried everything that was mansioned here but still the same problem:

Arduino: 1.8.10 (Windows 7), Board: "Generic ESP8266 Module, Serial, 160 MHz, 80MHz, DIO, 115200, 4M (3M SPIFFS), nodemcu"

Mehrere Bibliotheken wurden für "EEPROM.h" gefunden
 Benutzt: C:\Users\Abwickler\AppData\Local\Arduino15\packages\deauther\hardware\esp8266\2.0.0-deauther\libraries\EEPROM
Mehrere Bibliotheken wurden für "ArduinoJson.h" gefunden
 Benutzt: C:\Users\Abwickler\Documents\Arduino\libraries\ArduinoJson
 Nicht benutzt: C:\Users\Abwickler\AppData\Local\Arduino15\packages\deauther\hardware\esp8266\2.0.0-deauther\libraries\ArduinoJson
esp8266_deauther:24:17: error: oui.h: No such file or directory

 #include "oui.h"

                 ^

compilation terminated.

exit status 1
oui.h: No such file or directory

Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.

@tobozo
Copy link
Collaborator

tobozo commented Nov 16, 2019

you still have two versions, you can safely delete the first folder (Benutzt)

Benutzt: C:\Users\Abwickler\Documents\Arduino\libraries\ArduinoJson

Nicht benutzt: C:\Users\Abwickler\AppData\Local\Arduino15\packages\deauther\hardware\esp8266\2.0.0-deauther\libraries\ArduinoJson

@Scooby2001
Copy link

Scooby2001 commented Nov 16, 2019

Thanks for youre help, tried it but still the same problem...

Arduino: 1.8.10 (Windows 7), Board: "Generic ESP8266 Module, Serial, 160 MHz, 80MHz, DOUT, 115200, 4M (3M SPIFFS), nodemcu"

esp8266_deauther:23:17: error: oui.h: No such file or directory

 #include "oui.h"

                 ^

compilation terminated.

Mehrere Bibliotheken wurden für "ArduinoJson.h" gefunden
 Benutzt: C:\Users\Abwickler\AppData\Local\Arduino15\packages\deauther\hardware\esp8266\2.0.0-deauther\libraries\ArduinoJson
Mehrere Bibliotheken wurden für "EEPROM.h" gefunden
 Benutzt: C:\Users\Abwickler\AppData\Local\Arduino15\packages\deauther\hardware\esp8266\2.0.0-deauther\libraries\EEPROM
exit status 1
oui.h: No such file or directory

Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.

@Jacob12138xieyuan
Copy link

comment 17,21,22 line, install 5.x, works for me

@anonymous7cyber
Copy link

comment 17,21,22 line, install 5.x, works for me

Thanks man!

@spacehuhn spacehuhn added help wanted Requesting support pinned and removed Arduino IDE labels Jun 16, 2020
@James0329
Copy link

I got a strange problem. friends.

If I don't delete checker all things will stop at version checker.
If I delete the version checker method.
Then install any 5.x ArduinoJson when I upload file to esp8266 will trigger a error like
"invalid initialization of non-const reference of type 'ArduinoJson::JsonArray&' from an rvalue of type 'ArduinoJson::JsonArray'
"
or
"no matching function for call to 'ArduinoJson::DynamicJsonBuffer::DynamicJsonBuffer(int)'
"
this problem location at ssid.cpp file.
"DynamicJsonBuffer jsonBuffer(4000);"
"JsonArray & arr = obj.get(str(SS_JSON_SSIDS)); "
I try 5.0.0|5.0.5|5.1.0|5.4.0 but nothing change.
Need some help (T_T)

@5ch4um1
Copy link

5ch4um1 commented Jan 3, 2021

had this issue yesterday, but somehow it went away, i tried a few versions of ArduinoJson, to no avail, but today it works, not sure if it was the logout (restart in my case) ? I also deleted the repository and cloned it again, but i guess this shouldn't make a difference?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Requesting support pinned
Projects
None yet
Development

No branches or pull requests