0
這個錯誤剛剛到來,它一直在努力同步和建立,現在只是不能再建立或同步gradle?Android的stuido gradle問題,內容不允許在序言
有人嗎?
我已經嘗試通過點擊生成清理生成 - >清潔生成沒有沒有工作嗎?現在相當煩人!
* Where:
構建文件 '/home/mikaeljohansson/AndroidStudioProjects/myproj/build.gradle' 行:5
- 出了什麼問題: 的問題發生根源評估項目 '的Myproj'。
找不到存儲庫容器上參數[]的方法jcenter()。
下面是其他gradle.build文件:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.0.1'
compile files('libs/achartengine-1.1.0.jar')
}
這裏是另一個因素下資源目錄結構,通過移除地圖解決全球性的
// 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.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
你試過這個:: http://stackoverflow.com/questions/23438375/android-studio-gradle-errors-content-not-allowed-in-prolog –
在這裏發佈你的構建日誌。 – RyanB
我有這個,當我在代碼中使用非UTF8字符 – rzysia