Instagram / ig-json-parser

Fast JSON parser for java projects
https://instagram-engineering.com/fast-auto-generated-streaming-json-parsing-for-android-ab8e7be21033
MIT License
1.32k stars 124 forks source link

Can't import the project into Android-Studio #3

Closed AndroidDeveloperLB closed 10 years ago

AndroidDeveloperLB commented 10 years ago

For some reason, it has plenty of errors, for example:

D:\android-studio\Android studioProjects\ig-json-parser\processor\support\src\main\java\com\instagram\common\json\annotation\processor\support\ExtensibleJSONWriter.java Error:(7, 16) java: package org.json does not exist Error:(8, 16) java: package org.json does not exist Error:(30, 43) java: cannot find symbol symbol: class JSONWriter Error:(47, 64) java: cannot find symbol symbol: class JSONException location: class com.instagram.common.json.annotation.processor.support.ExtensibleJSONWriter Error:(56, 46) java: cannot find symbol symbol: class JSONException location: class com.instagram.common.json.annotation.processor.support.ExtensibleJSONWriter Error:(62, 49) java: cannot find symbol symbol: class JSONException location: class com.instagram.common.json.annotation.processor.support.ExtensibleJSONWriter Error:(68, 50) java: cannot find symbol symbol: class JSONException location: class com.instagram.common.json.annotation.processor.support.ExtensibleJSONWriter Error:(74, 52) java: cannot find symbol symbol: class JSONException location: class com.instagram.common.json.annotation.processor.support.ExtensibleJSONWriter Error:(80, 47) java: cannot find symbol symbol: class JSONException location: class com.instagram.common.json.annotation.processor.support.ExtensibleJSONWriter Error:(86, 55) java: cannot find symbol symbol: class JSONException location: class com.instagram.common.json.annotation.processor.support.ExtensibleJSONWriter Error:(92, 54) java: cannot find symbol symbol: class JSONException location: class com.instagram.common.json.annotation.processor.support.ExtensibleJSONWriter Error:(98, 52) java: cannot find symbol symbol: class JSONException location: class com.instagram.common.json.annotation.processor.support.ExtensibleJSONWriter Error:(104, 54) java: cannot find symbol symbol: class JSONException location: class com.instagram.common.json.annotation.processor.support.ExtensibleJSONWriter Error:(37, 53) java: cannot find symbol symbol: class JSONException location: interface com.instagram.common.json.annotation.processor.support.ExtensibleJSONWriter.Extender Error:(57, 5) java: cannot find symbol symbol: variable super location: class com.instagram.common.json.annotation.processor.support.ExtensibleJSONWriter Error:(55, 3) java: method does not override or implement a method from a supertype Error:(63, 5) java: cannot find symbol symbol: variable super location: class com.instagram.common.json.annotation.processor.support.ExtensibleJSONWriter Error:(61, 3) java: method does not override or implement a method from a supertype Error:(69, 5) java: cannot find symbol symbol: variable super location: class com.instagram.common.json.annotation.processor.support.ExtensibleJSONWriter Error:(67, 3) java: method does not override or implement a method from a supertype Error:(75, 5) java: cannot find symbol symbol: variable super location: class com.instagram.common.json.annotation.processor.support.ExtensibleJSONWriter Error:(73, 3) java: method does not override or implement a method from a supertype Error:(81, 5) java: cannot find symbol symbol: variable super location: class com.instagram.common.json.annotation.processor.support.ExtensibleJSONWriter Error:(79, 3) java: method does not override or implement a method from a supertype Error:(87, 5) java: cannot find symbol symbol: variable super location: class com.instagram.common.json.annotation.processor.support.ExtensibleJSONWriter Error:(85, 3) java: method does not override or implement a method from a supertype Error:(93, 5) java: cannot find symbol symbol: variable super location: class com.instagram.common.json.annotation.processor.support.ExtensibleJSONWriter Error:(91, 3) java: method does not override or implement a method from a supertype Error:(99, 5) java: cannot find symbol symbol: variable super location: class com.instagram.common.json.annotation.processor.support.ExtensibleJSONWriter Error:(97, 3) java: method does not override or implement a method from a supertype Error:(105, 5) java: cannot find symbol symbol: variable super location: class com.instagram.common.json.annotation.processor.support.ExtensibleJSONWriter Error:(103, 3) java: method does not override or implement a method from a supertype

ttung commented 10 years ago

It looks like Android Studio isn't loading up the dependencies correctly.

I did have to bump the version of the android plugin for the demo to 0.12.0+ for that part to build. https://github.com/Instagram/ig-json-parser/commit/0064b7739f73dc4f7d38c619362a77b4d8724e16

AndroidDeveloperLB commented 10 years ago

@ttung I don't understand. Do you mean you've fixed it?

ttung commented 10 years ago

You can try pulling the latest version to see if it fixes it. I could still build without that change, but android studio did flag the issue re. the plugin.

ttung commented 10 years ago

I'm going to close this. Please reopen if you still see an issue.

AndroidDeveloperLB commented 10 years ago

Seems to work fine now. Thanks.