Unable to load class 'org.gradle.initialization.layout.BuildLayoutFactory'
This is an unexpected error. Please file a bug containing the idea.log file.
I have react native project when run android this error showed
Gradle sync failed: Could not find method compile() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
I'm using android studio 1.5 and I have an error in gradle which is Error: more than one library with package name 'android.support.graphics.drawable' please see it in the picture....
drawable error
I have created a project in Android Studio but when I'm about to run it, this message appears:
'Unexpected exception while reading 9-patch file: Unable to parse
file:
F:/Lazarillo/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.2.0/res/drawable-hdpi/abc_btn_switch_to_on_mtrl_00012.9.png
'
I have tried to create new gradles but it's just impossible, it doesn't run anyway.
There are no errors in the code, everything looks flawless, what should I do?
New to the Android-Studio. I created an app and built with no errors; tried to run it and get the title error
(IDE gives no hint as to how to fix it):