Coder Social home page Coder Social logo

udacity / ud867 Goto Github PK

View Code? Open in Web Editor NEW
669.0 669.0 1.3K 6.33 MB

Course code repository for Gradle for Android and Java

Home Page: https://www.udacity.com/course/gradle-for-android-and-java--ud867

License: MIT License

HTML 0.26% Java 99.74%

ud867's Introduction

ud867: Gradle for Android and Java

Welcome to the demos and exercises accompanying ud867 at Udacity!

Each directory contains a README.md or solution.gradle that will explain either the concept being explored or the exercise at hand. For each exercise, hints and a solution.gradle file are also provided.

This course is specifically concerned with the app build process, not writing apps in the first place. If you're just starting out on your Android journey, you might want to take Udacity's Developing Android Apps course.

ud867's People

Contributors

13rac1 avatar aayushpathak avatar abohomol avatar amitsemwal avatar arielbarnoy avatar ashishkrishnan avatar bsletten avatar caiofaustino avatar dania-aj avatar danielmai avatar den13l avatar dnbit avatar dylanrichards avatar ersin-ertan avatar justinmae avatar mark-vieira avatar mlorenz2 avatar ophirudacity avatar rahulhp avatar rramprasad avatar sudhirkhanger avatar sudkul avatar thedorkknightrises avatar thehamco avatar vcctu85 avatar walesmd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ud867's Issues

Gradle and Java Compatibility

You should have made first a lesson about Gradle and Java Compatibility.
gradle-3.3-bin.zip is specified in gradle-wrapper.properties and this version doesn't support JDK > 8.

Make Android SDK and buildtools versions the same for all exercise and examples

Depending on the exercise, there are different SDK versions defined. Namely between SDK versions 21 and 22. This requires additional SDKs to be downloaded. Since I didn't have Android Stedio setup beforehand, I had to do some trouble shooting when the SDK version was changed. This was a minor inconvenience, but I could see this being harder for new developers.

$ git grep -E "buildToolsVersion|compileSdkVersion"                                                                                                                                                                                                                    
3.03-Demo-TheDefaultAndroidBuildScripts/app/build.gradle:    compileSdkVersion 21
3.03-Demo-TheDefaultAndroidBuildScripts/app/build.gradle:    buildToolsVersion "21.1.2"
3.04-Demo-BuildTypes/app/build.gradle:    compileSdkVersion 22
3.04-Demo-BuildTypes/app/build.gradle:    buildToolsVersion "22.0.1"
3.05-Exercise-ConfigureBuildTypes/app/build.gradle:    compileSdkVersion 21
3.05-Exercise-ConfigureBuildTypes/app/build.gradle:    buildToolsVersion "21.1.2"
3.06-Demo-DeclaringFlavors/app/build.gradle:    compileSdkVersion 22
3.06-Demo-DeclaringFlavors/app/build.gradle:    buildToolsVersion "22.0.1"
3.07-Exercise-DeclareFlavors/app/build.gradle:    compileSdkVersion 21
3.07-Exercise-DeclareFlavors/app/build.gradle:    buildToolsVersion "21.1.2"
3.08-Exercise-AddAFlavor-SpecificActivity/app/build.gradle:    compileSdkVersion 22
3.08-Exercise-AddAFlavor-SpecificActivity/app/build.gradle:    buildToolsVersion "22.0.1"
3.08-Exercise-AddAFlavor-SpecificActivity/solution/app/build.gradle:    compileSdkVersion 22
3.08-Exercise-AddAFlavor-SpecificActivity/solution/app/build.gradle:    buildToolsVersion "22.0.1"
3.09-Demo-Flavor-SpecificDependencies/app/build.gradle:    compileSdkVersion 22
3.09-Demo-Flavor-SpecificDependencies/app/build.gradle:    buildToolsVersion "22.0.1"
4.01-Demo-CreatingAJavaLibrary/app/build.gradle:    compileSdkVersion 22
4.01-Demo-CreatingAJavaLibrary/app/build.gradle:    buildToolsVersion "22.0.1"
4.02-Exercise-CreateAJavaLibrary/solution/app/build.gradle:    compileSdkVersion 22
4.02-Exercise-CreateAJavaLibrary/solution/app/build.gradle:    buildToolsVersion "22.0.1"
4.03-Demo-CreatingAnAndroidLibrary/app/build.gradle:    compileSdkVersion 22
4.03-Demo-CreatingAnAndroidLibrary/app/build.gradle:    buildToolsVersion "22.0.1"
4.03-Demo-CreatingAnAndroidLibrary/imageactivity/build.gradle:    compileSdkVersion 22
4.03-Demo-CreatingAnAndroidLibrary/imageactivity/build.gradle:    buildToolsVersion "22.0.1"
4.04-Exercise-CreateAnAndroidLibrary/solution/app/build.gradle:    compileSdkVersion 22
4.04-Exercise-CreateAnAndroidLibrary/solution/app/build.gradle:    buildToolsVersion "22.0.1"
4.04-Exercise-CreateAnAndroidLibrary/solution/jokedisplay/build.gradle:    compileSdkVersion 22
4.04-Exercise-CreateAnAndroidLibrary/solution/jokedisplay/build.gradle:    buildToolsVersion "22.0.1"
4.05-Demo-AddingASigningConfiguration/app/build.gradle:    compileSdkVersion 22
4.05-Demo-AddingASigningConfiguration/app/build.gradle:    buildToolsVersion "22.0.1"
4.06-Exercise-ConfigureSigning/app/build.gradle:    compileSdkVersion 22
4.06-Exercise-ConfigureSigning/app/build.gradle:    buildToolsVersion "22.0.1"
4.07-Demo-MultidexSupport/app/build.gradle:    compileSdkVersion 22
4.07-Demo-MultidexSupport/app/build.gradle:    buildToolsVersion "22.0.1"
4.08-Demo-ConfiguringProguard/app/build.gradle:    compileSdkVersion 22
4.08-Demo-ConfiguringProguard/app/build.gradle:    buildToolsVersion "22.0.1"
4.09-Demo-AndroidUnitTesting/app/build.gradle:    compileSdkVersion 22
4.09-Demo-AndroidUnitTesting/app/build.gradle:    buildToolsVersion "22.0.1"
4.10-Exercise-SetUpUnitTesting/app/build.gradle:    compileSdkVersion 22
4.10-Exercise-SetUpUnitTesting/app/build.gradle:    buildToolsVersion "21.1.2"
4.10-Exercise-SetUpUnitTesting/solution/app/build.gradle:    compileSdkVersion 22
4.10-Exercise-SetUpUnitTesting/solution/app/build.gradle:    buildToolsVersion "21.1.2"
FinalProject/app/build.gradle:    compileSdkVersion 22
FinalProject/app/build.gradle:    buildToolsVersion "22.0.1"

Error in 1.01-Exercise-RunYourFirstTask Could not find GradleWrapperMain

I'm running 1.01-Exercise-RunYourFirstTask from Ubuntu 18.04.

But it's giving me the following error:
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

Java version:
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)

Typo: 1.17-Exercise-InvestigateLogging/build.gradle

Line 14 by โ‰  be

3. Modify the `println()` call in our task action to instead by a logging
 statement at the LIFECYCLE level.

Suggested change:

3. Modify the `println()` call in our task action to instead be a logging
   statement at the LIFECYCLE level.

Add to readme directions how to properly import project into IDE.

This is more of a suggestion than issue. But in IntelliJ, when I try to import this project from existing sources. The recommended project structure ends up being a confangled mess of source folders and modules with names like main22, main23, test2 etc.. Ideally we could have each module being the root of the exercise e.g. 3.07-Exercise-DeclareFlavors.

I know I can just unzip the folder and run all gradle commands from the command line, but IDE functionality just makes things more convenient.

Issue with the version of jdk supporting Gradle wrapper

The gradle wrapper is not working with jdk 'version 9.0.1'
The options left with me is to downgrade my system jdk to version '1.8.0-151' for continuing this course .
Downgrading jdk would work for this purpose but i will get conflicts while running other application not supporting this downgraded version.
Downgrading jdkmay be a temporary solution ,but i request you to find a permanent solution for this issue.
And if there is already a solution to this issue ,please suggest.
image

Confused about 1.07-Exercise-ConfigureATask

So, this may be a dumb question, but I'm confused about the 1.07 exercise for configuring a task. In the quiz on the Udacity web site, the answer for the "group" question was "udacity". Unless I'm missing something, according to the build.gradle, the group should be "Other tasks", correct?

Here are the instructions:

  1. Create an empty task definition and name your task "hello".
  2. Give your task a description.
  3. Add an action to your task which prints "Hello World!"

This does not mention specifying the "group" name for the task. While the solutions.gradle does, it appears to be referencing a different build.gradle (group = 'udacity' // 2. Add task to "udacity" group -- in the build.gradle, #2 is actually "give it a description").

If the build.gradle is followed, shouldn't the resulting "group" be "Other tasks"?

Sorry - just trying to understand everything and confused as to why I got the wrong answer :)

Edit grammar in 1.13-Demo-ParameterisingYourBuild/build.gradle

Lines 10-11 in build.gradle

Original:

There are two main ways to do this, a gradle.properties file, and command line arguments.

This currently appears as a list of "this", "a gradle.properties file", and "command line arguments". A colon should follow the word "this" instead of a comma, but even then the sentence seems awkward.

Suggested change:

The two main places to add properties are a gradle.properties file and command line arguments.

Typo in README

Not gonna fork and pull-request for a simple change:

Add Interstitial Ad

Follow these instructions to add an interstitial ad to the free version. Display the add after the user hits the button, but before the joke is shown.

It looks like someone aded a d to the second sentence ๐Ÿ˜‰

Question about 1.09-Exercise-ConfigureTaskDependencies

In the study video, teacher say only two task will show in the task list, but when I ran gradle -b solution.gradle -q task --all The output showed all tasks in "Other task", why is that?

Other tasks

addSweetener
blackCoffee
brew
drink
pour
sweetCoffee

no report generated

If tests are being failed gradle isnt generating any report . i have ran the tests and they failed and no report was generated.
screenshot from 2018-05-21 15-35-43

Edit grammar in 1.07-Exercise-ConfigureATask/build.gradle

On line 3: There's an extra space between 'your' and 'first', and the first 'your' should be 'you'.

Change

It's time for your to create your  first Gradle task. Be sure to try and run

to

It's time for you to create your first Gradle task. Be sure to try and run

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.