bitbucketからプルされたプロジェクトで作業しています。私がgradleを構築しようとすると、次のエラーが表示されます。グレー同期が失敗しました:インデックス2の不正な文字
Gradle sync failed: Illegal char at index 2: C\:\\Program Files (x86)\\Android\\android-sdk\analytics.settings
このプロジェクトは、同じリポジトリから引き出された他のメンバーのコンピュータでも問題なく動作しています。 (それらのうちの1つは、実際にはすべてを最初にアップロードしたものであり、彼のシステムでは明らかにうまく動作します)。
今、私はエラーメッセージを全く理解できません。私はそれが言及しているどのような違法な文字がわからない。
ありがとうございます!
build.gradle(プロジェクト)
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.example"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:cardview-v7:23.4.0'
compile 'com.google.firebase:firebase-core:9.4.0'
compile 'com.google.firebase:firebase-auth:9.4.0'
compile 'com.google.firebase:firebase-messaging:9.4.0'
compile 'com.google.firebase:firebase-config:9.4.0'
compile 'com.google.firebase:firebase-invites:9.4.0'
compile 'com.google.firebase:firebase-ads:9.4.0'
compile 'com.google.android.gms:play-services-appindexing:9.4.0'
compile 'com.google.android.gms:play-services-auth:9.4.0'
compile 'com.vinaygaba:creditcardview:1.0.3'
compile 'com.squareup.retrofit2:retrofit:2.0.0'
compile 'com.squareup.retrofit2:converter-gson:2.0.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.squareup.okhttp3:logging-interceptor:3.2.0'
}
apply plugin: 'com.google.gms.google-services'
編集
私はプロジェクトを削除しようとしたし、もう一度バージョンコントロールからチェックアウトしてみました。しかし、現在は、gradle cantが構築されるので、プロジェクトを開くことさえありません。
私は両方のオプションを試してみましたが、それは常に私の他のプロジェクトがうまく構築されていることに注意してください、次のエラー
編集2 を示しています。だから問題は、この特定のプロジェクトでなければなりません
** build ** dirを削除して、プロジェクトを再構築してみてください。 –
あなたは完全なlogcatを投稿できますか? –
@QianSijianhao did not work – pblead26