![]() ![]() src/debug/java directory can be used to add sources that will only be compiled for the debug APK. In addition to modifying build properties, Build Types can be used to add specific code and resources. For each Build Type, a new matching sourceSet is created, with a default location of src//, e.g. See the DSL Reference for a list of all properties that can be configured on a build type. Keep configuring the jnidebug, by enabling debug build of the JNI component, and add a different package suffix.Ĭreating new Build Types is as easy as using a new element under the buildTypes container, either to call initWith() or to configure it with a closure.Creates a new BuildType called jnidebug and configure it to be a copy of the debug build type.debug to be able to install both debug and release apk on the same device Configures the default debug Build Type:.The above snippet achieves the following: ![]() 5.2 Build Type + Product Flavor = Build Variant.4.3 Resolving conflicts between main and test APK.3.3.2 Differences between a Project and a Library Project.3 Dependencies, Android Libraries and Multi-project setup.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |