-1

InspectAndroidManifest new build.gradle I have tried almost every solution provided on Stack Overflow related to this 'gradle project syc failed' error, but nothing was useful in my case. I am new to Android Studio and miserably got stuck at the beginning.

In the event log this message appears:

Gradle sync failed: Failed to apply plugin [id 'com.android.application'] Consult IDE log for more details (Help | Show Log) (296ms)

But I am not able to click on (Help | Show Log).

Note: Using Android Studio 3.1.3 and Gradle version 4.9.

the link show a screenshot of error

2 Answers2

0

it's probably problem with your plugin implementation

0

Probably you don't have the main class (the one executes when the app starts) that is extended from Application. It will be better to see your AndroidManifest as well.

But i guess, if you remove apply plugin: com.android.application from build.gradle it may work.

ashazar
  • 714
  • 5
  • 11
  • removing " apply plugin: com.android.application " didn't help me.It shows the same error + "Could not find method android() for arguments [build_bn4dguwx3shqdd0xjzcjh7th2$_run_closure1@4c28e7b8] on project ':app' of type org.gradle.api.Project." – Vysakh G Nair Jul 28 '18 at 05:50
  • AndroidManifest is added to my post.please click on AndroidManifest – Vysakh G Nair Jul 28 '18 at 05:51