
I can successfully build the project(A) if anycodings_android-studio remove the import. Jni.srcDirs = //disable automatic ndk-build callĬommandLine 'ndk-build.cmd', '-C', file('src/main/jni').absolutePathĬommandLine '/opt/adt-bundle-linux/android-ndk-r8e/ndk-build', '-C', file('src/main/jni').absolutePathĬompileTask -> pendsOn ndkBuildĬompile ':support-v4:18.0.0' ProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'Ĭompile fileTree(dir: 'libs', include: )Ĭompile ':appcompat-v7:21.0.3'ī's build file import. Error Error:(22, 23) error: cannot find symbol class PreferencesĪ's build file apply plugin: '' Try upgrading your build tools to at least Android 10.0 (Q) in the SDK Manager. I believe the problem is that you're not using the correct buildTools. Possible solution for the above are Check the import statements at the top and make sure it includes the line: import Make sure both Activities are defined in your Manifest file. Preferences is anycodings_android-studio a class of project B. Perform a Gradle sync (via Tools > Android > Sync Project with Gradle Files) Android Gradle: Cannot find symbol Q. Cannot find symbol class Intent Android Previous Next This error may come when using Intent, and compiler throws above error. To actually build, Gradle also needs to be aware of it.

Adding it as a dependency in the Project Structure settings is not enough. android gradle android-gradle-plugin gson. Now i anycodings_android-studio can import B's class in A without any error anycodings_android-studio (in editor) but can't build. Android Gradle cannot find symbol class Gson. I have added anycodings_android-studio dependencies in A's Gradle build file.


I have two project A and B where B is added anycodings_android-studio as a module of project A.
