Sign in Go Pro

Android Build Variants

Changing the Default Name of Your App, Free and Pro Versions of Your App, Alternate Code Paths (Part 2)

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson
Autoplay

Up next

Previous

About

In this Lesson you will be shown how to:

  • Change the default name of the application within the settings.gradle file
  • How to create a free and pro version of your app
  • Create build variant code paths that only execute per build variant
  • Create two different applications with two different package names (free and pro versions)
  • How to create different folder structures for the free and pro versions of the applications
  • How to use ./gradlew assemble
  • How to inspect the APK badging information using the aapt tool

Comments

And here, this error happens:

http://bit.ly/2VEjmfm

Rodrigo, I just updated all branches to a recent version of Android Studio and Gradle and they'll now compile without issue. Please pull the latest from GitHub.

The video is different from the "change-app-name" branch.

Correct. I updated it because it would not compile with recent versions of
Android Studio and the Gradle plugin. The main difference is the addition
of the dimensions.

I tried creating flavors in build.gradle. And this error happened:

ERROR: All flavors must now belong to a named flavor dimension.

Solved!

This thread helped me solving:
https://stackoverflow.com/a/44105198/1354788

>
You need to go PRO to post comments.

Lessons in Android Build Variants