Third Party Library doesnt exists : error: package org.achartengine does not exist
<p>I am using org.achartengine in my Android Studio Project.I recently migrated it from the Eclipse.(imported).
I see the achartengine-1.1.0.jar under the assets folder but on building the apk I am getting this error :</p>

<p>Error:(30, 24) error: package org.achartengine does not exist</p>

<p>and hence errors at all those places where the functions from this library are referenced.</p>

<p>I am not getting any error If I do Tools>Android > Sync Project with Gradle Files </p>

<p>WHat is the difference ?
How can I resolve this error?Perhaps some reference to library is not mentioned in the configuration.</p>