android - Gradle cannot compile .aar file -


I am trying to add an external library I created in the project folder in the / libs folder and my gradle.build file I have the following code in it but it does not sync at all

  // top-level build file where you can add general configuration options for all sub-projects / modules. Buildscript {repositories {mavenCentral ()} dependency {classpath 'com.android.tools.build:gradlects.9.+'}} All Project {repositories {mavenCentral () flatDir {dirs' libs'}}} dependency {compile 'com radius network: Android Aibii Library: 0.7.1 @ AR '}  

I'm a get error is: Gredl' Blikliant project failed to refresh: scripts error, Unsupported Gradle DSL method found: 'compile ()'! Possible reasons are:
- The method where you are using the Gradele version is absent - you have not applied the Gradle plugin that provides the method - or there is a mistake in the build script

You should not add this dependency to the root-level build.gradle file. Instead, add it to your module's build.gradle file. The top-level build file is for those things that are common to all modules in your project, but it is highly unlikely that you want all modules to have the same dependencies, or even want to share it.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -