What should I use instead of com.google.appengine.repackaged *?

Just upgraded to 1.6.1, and I get warnings that I should not use

com.google.appengine.repackaged 

What should i use instead?

The classes affected are:

com.google.appengine.repackaged.org.json.JSONException; com.google.appengine.repackaged.org.json.JSONObject; com.google.appengine.repackaged.com.google.common.util.Base64; com.google.appengine.repackaged.com.google.common.util.Base64DecoderException;

+6
source share
3 answers

For org.json.* You can use the Java JSON library found at http://json.org/ (although there are other, more advanced JSON libraries for Java)

For classes from com.google.common.* You can find most of them (although not Base64 , etc., apparently) in the Google Guava libraries .

+3
source
 org.json.JSONException; org.json.JSONObject; com.google.common.util.Base64; com.google.common.util.Base64DecoderException; 
+2
source

You should include third-party banks in your application, instead of relying on com.google.appengine.repackaged

In your case, you should add the following dependencies:

+2
source

Source: https://habr.com/ru/post/906897/


All Articles