Android studio 从Android Studio为iosched 2013源配置Gradle

Android studio 从Android Studio为iosched 2013源配置Gradle,android-studio,android-gradle-plugin,building,Android Studio,Android Gradle Plugin,Building,这里是Android开发者noobie 我得到了最新的iosched 2013源代码,解决了大部分问题,并相应地编辑了Gradle文件(至少我认为我的思路是正确的) 我现在可以在AVD中启动该应用程序。主要通过以下方式解决: 运行SDK管理器并包括我发现的库 如下所示编辑渐变文件 当我转到Build>cleanproject时,它说Gradle调用成功地完成了 但以下几行在Android Studio中加了下划线: compile 'com.google.android.apps.dashclo

这里是Android开发者noobie

我得到了最新的iosched 2013源代码,解决了大部分问题,并相应地编辑了Gradle文件(至少我认为我的思路是正确的)

我现在可以在AVD中启动该应用程序。主要通过以下方式解决:

  • 运行SDK管理器并包括我发现的库
  • 如下所示编辑渐变文件
  • 当我转到
    Build>cleanproject
    时,它说
    Gradle调用成功地完成了

    但以下几行在Android Studio中加了下划线:

    compile 'com.google.android.apps.dashclock:dashclock-api:+'
    compile 'com.google.code.gson:gson:2.+'
    
    exclude group: 'org.apache.httpcomponents', module: 'httpclient'
    compile 'com.google.apis:google-api-services-plus:+'
    
    渐变源:

    /*
     * Copyright 2013 Google Inc.
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
     *
     *      http://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    apply plugin: 'android'
    
    repositories {
        mavenCentral()
    }
    
        dependencies {
            compile 'com.google.android.gms:play-services:3.+'
            compile 'com.android.support:appcompat-v7:19.1.0'
            compile 'com.google.android.apps.dashclock:dashclock-api:+' // underlined from dashclock:dashclock-api:+ 
            compile 'com.google.code.gson:gson:2.+' // underlined from gson:gson:2.+'
            compile('com.google.api-client:google-api-client:1.+') {
                exclude group: 'xpp3', module: 'shared'
                exclude group: 'org.apache.httpcomponents', module: 'httpclient' // underlined from httpcomponents', module: 'httpclient'
                exclude group: 'junit', module: 'junit'
                exclude group: 'com.google.android', module: 'android'
            }
            compile 'com.google.api-client:google-api-client-android:1.17.+'
            compile 'com.google.apis:google-api-services-plus:+' // underlined from apis:google-api-services-plus:+'
            compile fileTree(dir: 'libs', include: '*.jar')
        }
    
        android {
            compileSdkVersion 19
            buildToolsVersion "19.0.0"
    
            defaultConfig {
                minSdkVersion 10
                targetSdkVersion 19
            }
        }
    
    非常感谢您的帮助

    谢谢大家!


    编辑

    添加了我的意思的截图

    这些警告(不是错误)完全没有问题。事实上,我建议你关掉这个警告,因为90%的时候它是假阳性

    要关闭警告,请转到
    文件->设置->检查
    ,然后搜索“拼写”。取消选中结果,然后单击
    Ok
    。警告将消失



    底线:如果没有其他错误,您应该能够构建一个运行该应用程序的应用程序。这些警告不应阻止这种情况。

    但以下几行在Android Studio中加了下划线。上面说什么?您是否能够构建并运行应用程序?嗨@NiekHaarman。刚刚更新了我的意思,明白了。那么,我将如何消除这些警告?有没有办法通过使用Gradle来解决这些问题?我认为这是因为名称空间/库不存在。是否有一些资源概述了如何更新或修复这些引用/依赖项?这与此完全无关,这就是为什么我总是关闭它们。这基本上意味着英语词典中不存在潜在的单词。依赖关系很好。