2016-10-20 5 views
0

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が構築されるので、プロジェクトを開くことさえありません。

checkout 私は両方のオプションを試してみましたが、それは常に私の他のプロジェクトがうまく構築されていることに注意してください、次のエラー

error

編集2 を示しています。だから問題は、この特定のプロジェクトでなければなりません

+0

** build ** dirを削除して、プロジェクトを再構築してみてください。 –

+0

あなたは完全なlogcatを投稿できますか? –

+0

@QianSijianhao did not work – pblead26

答えて

0

私も同じ問題に直面して解決しました。最新のsdkバージョンを使用しているかどうかを確認し、そうでない場合は更新してください。sdkを更新した後、システム環境変数が適切に配置されているかどうか確認してください。次に、プロジェクトを再起動してください。

関連する問題