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"
}
}
謝謝你,我早就這麼幹過太多,但現在說錯誤:原因:未指定buildToolsVersion的。 – Steve
刪除也適用插件:'com.android.application' 申請插件:'jetty'從項目XXX build.gradle –
檢查此鏈接http://stackoverflow.com/questions/32153544/errorcause-buildtoolsversion-is-not - 指定 –