Configuring Gradle for iosched 2013 source from Android Studio -
android developer noobie here.
i got latest iosched 2013 source , resolved of issues , edited gradle file accordingly (at least think on right track).
i can launch app in avd. resolved by:
- running sdk manager , including libraries figured out
- editing gradle file below.
when go build > clean project
, says gradle invocation completeed succesfully
but following lines underlined within 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:+'
gradle source:
/* * copyright 2013 google inc. * * licensed under apache license, version 2.0 (the "license"); * may not use file except in compliance license. * may obtain copy of license @ * * http://www.apache.org/licenses/license-2.0 * * unless required applicable law or agreed in writing, software * distributed under license distributed on "as is" basis, * without warranties or conditions of kind, either express or implied. * see license specific language governing permissions , * limitations under 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 dashclock:dashclock-api:+ compile 'com.google.code.gson:gson:2.+' // underlined 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 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 apis:google-api-services-plus:+' compile filetree(dir: 'libs', include: '*.jar') } android { compilesdkversion 19 buildtoolsversion "19.0.0" defaultconfig { minsdkversion 10 targetsdkversion 19 } }
help appreciated.
thank-you!
edit
added screenshots of mean
those warnings (not errors) totally fine. in fact, i'd recommend turning warning off, 90% of time false positive.
to turn off warning, go file -> settings -> inspections
, , search 'spelling'. untick results, , click ok
. warnings disappear.
bottom line: if there no other errors, should able build run application. these warnings should not prevent that.
Comments
Post a Comment