Android 在另一台计算机上打开项目时,无法解决Affectiva Affdex SDK依赖项的Gradle生成失败

Android 在另一台计算机上打开项目时,无法解决Affectiva Affdex SDK依赖项的Gradle生成失败,android,dependencies,android-gradle-plugin,build.gradle,affdex-sdk,Android,Dependencies,Android Gradle Plugin,Build.gradle,Affdex Sdk,我正在开发一个使用Affectiva Afdex SDK的应用程序,并将其包含在gradle文件中。在我试着在家里用我的MacBook打开这个项目之前,我的电脑在工作中一切都很好。我不认为这与Windows和苹果有什么关系,所以我不想没完没了地讨论苹果和Windows的利弊; 因此,构建失败是因为无法解析依赖项编译'com.affectiva.android:affdesdk:3.2.0'。 我不知道这是否相关,但在工作中我使用代理,在家中我不使用代理 以下是错误: 这是我的应用程序gradle

我正在开发一个使用Affectiva Afdex SDK的应用程序,并将其包含在gradle文件中。在我试着在家里用我的MacBook打开这个项目之前,我的电脑在工作中一切都很好。我不认为这与Windows和苹果有什么关系,所以我不想没完没了地讨论苹果和Windows的利弊; 因此,构建失败是因为无法解析依赖项编译'com.affectiva.android:affdesdk:3.2.0'。 我不知道这是否相关,但在工作中我使用代理,在家中我不使用代理

以下是错误:

这是我的应用程序gradle:

这是gradle项目:

我不知道是否有必要,但这是舱单:


非常感谢

正确的工件版本是3.2而不是3.2.0。这是Affectiva开发人员门户上的一个错误,现已更正。

Ok我将compile'com.Affectiva.android:affdesdk:3.2.0'替换为compile'com.Affectiva.android:affdesdk:3+'。我知道由于不可预测的版本,不建议使用“+”,但这是我到目前为止找到的唯一方法。我将版本更改为3.2,它成功了!谢谢!
    Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
   > Could not resolve com.affectiva.android:affdexsdk:3.2.0.
     Required by:
         Emojat:app:unspecified
      > Could not resolve com.affectiva.android:affdexsdk:3.2.0.
         > Could not get resource 'http://maven.affectiva.com/com/affectiva/android/affdexsdk/3.2.0/affdexsdk-3.2.0.pom'.
            > Could not GET 'http://maven.affectiva.com/com/affectiva/android/affdexsdk/3.2.0/affdexsdk-3.2.0.pom'.
               > Connect to 192.168.205.11:8080 [/192.168.205.11] failed: Operation timed out
apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion '25.0.2'

    defaultConfig {
        applicationId "com.example.plucinst.emojat"
        minSdkVersion 16
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        debug {
            debuggable true
        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.affectiva.android:affdexsdk:3.2.0'
    compile 'com.android.support:support-v4:25.3.1'
    compile 'com.android.support:support-v13:25.3.1'
    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support:design:25.3.1'
}
    // Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
        mavenCentral()
        maven { url 'http://repo1.maven.org/maven2' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        mavenLocal()
        maven {
            url "http://maven.affectiva.com"
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.plucinst.emojat">

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />

<application
    tools:replace="android:allowBackup,android:label"
    android:allowBackup="true"
    android:icon="@drawable/launcher_icon_alternativ3"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme"
    android:largeHeap="true"
    android:hardwareAccelerated="true"
    >



    <activity android:name="com.example.plucinst.emojat.MainActivity"><!--com.example.plucinst.emojat.MainActivity-->
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name="com.example.plucinst.emojat.ScreenSlidePagerActivity"></activity>
    <activity android:name="com.example.plucinst.emojat.ChatActivity"></activity>
    <activity android:name="com.example.plucinst.emojat.InboxActivity"></activity>
    <activity android:name="com.example.plucinst.emojat.EmojiDetectionActivity"></activity>
    <activity android:name="com.example.plucinst.emojat.EmojiSelectionActivity"></activity>
    <activity android:name="com.example.plucinst.emojat.AndroidDatabaseManager"></activity>
    <activity android:name="com.example.plucinst.emojat.SettingsActivity"></activity>

</application>