I newly Android project started a new default project. Everytime I try to start the app this error occurs:
build.gradle(Module:app)
apply plugin: \'c
Probably you dont add suport-v4 library correctly in your project.
Check this :
Finally if this didn't resolve your problem try to remove this library from your imported libraries list and your project modules dependency list and import and add it again from one source to your project , then try rebuild the project or restart the IDE.
I hope this way can help you :)
The log trace have said: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs;
. This is caused by some caches. Not anything wrong with your codes. You just need to rebuild Project
or clean Project
, then everything would be fine.
This problem is not because of JDK 1.8 or 1.7, Its due to dependencies. Please check your Gradle Dependencies.
I have faced similar issue, in my case the problem was occurred due to Facebook dependency
dependencies { ... ... ... ... ... //Commented the following one compile 'com.facebook.android:facebook-android-sdk:4.0.0' } after commenting the above line everything was normal
This kind of issue happens when your are using the same library with a different version.
Remove from your libs folder the supportv4.jar and add this line in the build.gradle
file:
compile 'com.android.support:support-v4:21.0.3'