2016-01-21 88 views
0

我正在尝试为我的舞台合并两个应用程序。因此,它要求我添加更多细节,好吧,我正在尝试将indooratlas和lghtcurd合并在一起,我的雇主希望我合并这些应用程序,以便他可以有一个应用程序可以跟踪您在建筑物内的位置,并发送推送通知特价商店。他还希望我将自己的标识添加到应用程序中,所以如果你能帮助我,我也会很感激。未找到Android Studio Gradle DSL方法:'android()' - 错误(17,0)


// Top-level build file where you can add configuration options common to all  sub-projects/modules. 
buildscript { 
    repositories { 
     jcenter() 
    } 
    dependencies { 
     classpath 'com.android.tools.build:gradle:1.5.0' 
     // NOTE: Do not place your application dependencies here; they belong 
     // in the individual module build.gradle files 
    } 
} 
allprojects { 
    repositories { 
     jcenter() 
    } 
} 
android { 
    compileSdkVersion 23 
    buildToolsVersion '23.0.1' 
} 

apply plugin: 'com.android.application' 
apply plugin: 'jetty' 

#Wed Apr 10 15:27:10 PDT 2013 
distributionBase=GRADLE_USER_HOME 
distributionPath=wrapper/dists 
zipStoreBase=GRADLE_USER_HOME 
zipStorePath=wrapper/dists 
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip 

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="com.lightcurb.example" > 

<!-- SDK feature --> 
<uses-feature 
    android:name="android.hardware.bluetooth_le" 
    android:required="true" /> 

<application 
    android:name=".LCExampleApplication" 
    android:allowBackup="true" 
    android:icon="@drawable/ic_launcher" 
    android:label="@string/app_name" 
    android:theme="@style/AppTheme" > 

    <activity 
     android:name=".activity.MainActivity" 
     android:configChanges="orientation|keyboardHidden|screenSize" 
     android:label="@string/app_name" 
     android:noHistory="true" 
     android:screenOrientation="portrait" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 

      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
    <meta-data 
     android:name="com.indooratlas.android.sdk.API_KEY" 
     android:value="c24c139a-0fd8-4072-b92d-440f1369a413"/> 
    <meta-data 
     android:name="com.indooratlas.android.sdk.API_SECRET" 
      android:value="jU)0v5VVdUGfpE69DUS!zLmqVhA1wiPNymesYonp6XSArIshOSfYKbhJP9v6zIpdl8U9hOhrgQiPWYYjwSWUjgjDlbi44MNu0P52dwglirV0qTAWFfY7sj)ClhXp80i1"/> 
</application> 


apply plugin: 'com.android.application' 

android { 
compileSdkVersion 21 
buildToolsVersion "21.1.2" 

defaultConfig { 
    applicationId "com.lightcurb.example" 
    minSdkVersion 18 
    targetSdkVersion 21 
    versionCode 9 
    versionName "1.0.0" 
} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

repositories { 
    mavenCentral() 
    flatDir { 
     dirs 'libs' 
    } 
} 

dependencies { 
    compile 'com.indooratlas.android:indooratlas-android-sdk:[email protected]' 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    compile 'com.radiusnetworks:AndroidIBeaconLibrary:[email protected]' 
    compile 'com.lightcurb.sdk:LightcurbSDK:[email protected]' 
    } 
    repositories{ 
    maven { 
     url "http://indooratlas-ltd.bintray.com/mvn-public" 
    } 
} 

回答

0

删除此代码

android { 
    compileSdkVersion 23 
    buildToolsVersion '23.0.1' 
} 
apply plugin: 'com.android.application' 
apply plugin: 'jetty' 

从第一的build.gradle

+0

谢谢你,我早就这么干过太多,但现在说错误:原因:未指定buildToolsVersion的。 – Steve

+0

删除也适用插件:'com.android.application' 申请插件:'jetty'从项目XXX build.gradle –

+0

检查此链接http://stackoverflow.com/questions/32153544/errorcause-buildtoolsversion-is-not - 指定 –

相关问题