我的项目运行良好,如果我添加Facebook SDK生成com.android.ide.common.internal.LoggedErrorException错误尝试编译.
我尝试了Maven Repository,并下载了SDK Facebook,两者都产生了同样的错误.
这是Gradle依赖项:
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile project(':simple-crop-image-lib')
compile project(path: ':backend', configuration: 'android-endpoints')
compile project(':httpclient-4.3.6')
compile project(':httpmime-4.3.6')
compile project(':httpcore-4.3.3')
compile 'com.android.support:support-v13:21.0.3'
compile 'com.google.android.gms:play-services:6.5.87'
compile 'com.koushikdutta.async:androidasync:1.3.8'
compile 'com.koushikdutta.ion:ion:1.3.8'
compile 'joda-time:joda-time:2.5'
compile project(':facebook')
}
Run Code Online (Sandbox Code Playgroud)
这是实施:
public class extends Activity implements Register GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener {
// Facebook
UiLifecycleHelper private uiHelper;
// Facebook
...
Run Code Online (Sandbox Code Playgroud)
这是错误:
错误:任务':app:dexDebug'的执行失败.
com.android.ide.common.internal.LoggedErrorException:无法运行命令:C:\ AndroidSDK\sdk\build-tools\android-4.4W\dx.bat --dex --no-optimize --output C:\ Carlos\RingProyect\app\build\intermediates\dex\debug C:\ Carlos\RingProyect\app\build\intermediates\classes\debug C:\ Carlos\RingProyect\app\build\intermediates\pre-dexed\debug\internal_impl- 21.0.3-4959d6dabe32e10086d95451adf02b3105bb3b29.jar C:\ Carlos\RingProyect\app\build\intermediates\pre-dexed\debug\support-annotations-21.0.3-56620581d48b4e53a66e3c8171c6371387ca27a8.jar C:\ Carlos\RingProyect\app\build\intermediates\pre-dexed\debug\google-http-client-jackson2-1.19.0-4208b75ca9c39f13f0c833eca04c03cccea3f2e9.jar C:\ Carlos\RingProyect\app\build\intermediates\pre-dexed\debug\google-api-client-android-1.19. 0-6de6f1752dfdd2f7269c5ebca750e463fe8698ae.jar C:\ Carlos\RingProyect\app\build\intermediates\pre-dexed\debug\google-http-client-android-1.19.0-d9ae92c3b3d0ecb599461daf2dbe3a955a59050c.jar …
我有圆形图像的问题,不起作用,壁画下载图像和显示但不转换为圆形.我不知道我错过了这是我的代码.
摇篮:
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "pruebas.imaginamos.com.pruebas"
minSdkVersion 21
targetSdkVersion 24
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.facebook.fresco:fresco:0.14.1'
testCompile 'junit:junit:4.12'
//compile 'com.mostafagazar:customshapeimageview:1.0.4'
// If your app supports Android versions before Ice Cream Sandwich (API level 14)
compile 'com.facebook.fresco:animated-base-support:0.14.1'
}
Run Code Online (Sandbox Code Playgroud)
这是MainActivity5.java:
package …Run Code Online (Sandbox Code Playgroud)