mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2026-02-06 16:05:07 +00:00
Allow product flavors #84
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Pedroalexandrelopes on 10/10/2019
Hi. I have an AndroidStudio project with product flavors defined in the gradle file for staging and production environments. Each flavor defines its own applicationId.
I have the args defined with 'assembleStagingDebug' in
tasks.jsonso it cangradlewwith the selected flavor profile.When the debugger is trying to launch the MainActivity, it uses the defaultConfig applicationId/packageName to search for it.
It ends with the error "Launch failed: Error: Activity class {(packageName)/(MainActivity)} does not exist."
I can see the source code uses the command to launch activity
'am start'with the'this.session.build.pkgname'.Is it possible to have a launch configuration to specify the pkgname or any other way of searching the correct package of the flavor used?