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