Я пытаюсь объединить два приложения вместе для моей сцены. Поэтому он просит меня добавить более подробную информацию, ну, я пытаюсь объединить indooratlas и lghtcurd вместе, мой работодатель хочет, чтобы я объединил эти приложения, чтобы у него могло быть одно приложение, которое может отслеживать, где вы находитесь внутри здания, и отправлять push-уведомления магазин экстренное сообщение. Он также хочет, чтобы я добавил свой логотип в приложение, поэтому, если вы можете мне помочь, я тоже буду благодарен.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 -specified –