android-studio

Does Android Studio support sub-flavors?

痞子三分冷 提交于 2020-01-13 17:10:35
问题 I have an Android Studio project that currently has 2 product flavors in the build.gradle as follows: productFlavors { parent { applicationId "xxx.parent" } teacher { applicationId "xxx.teacher" } } Both flavors have some common code under src/main What I need is 1 more level of flavors, so I want under one flavor to have sub flavors which is 1 more level of customization (for some resources & some static variables) So I want something similar to below: productFlavors { parent { p1 {

Does Android Studio support sub-flavors?

你。 提交于 2020-01-13 17:09:31
问题 I have an Android Studio project that currently has 2 product flavors in the build.gradle as follows: productFlavors { parent { applicationId "xxx.parent" } teacher { applicationId "xxx.teacher" } } Both flavors have some common code under src/main What I need is 1 more level of flavors, so I want under one flavor to have sub flavors which is 1 more level of customization (for some resources & some static variables) So I want something similar to below: productFlavors { parent { p1 {

Android preview build tools alpha 5 won't deploy APK

假装没事ソ 提交于 2020-01-13 14:04:38
问题 Whenever I try to start an app, either by debugging or playing, after compiling with: dependencies { classpath 'com.android.tools.build:gradle:2.0.0-alpha5' } I get the message: No local changes detected, not deploying APK. I get this even when there most certainly are changes, so I am unable to push any new changes to the device without actually moving the APK to the device and installing it manually. I've tried unchecking the "Skip installation if APK has not changed" configuration option,

Importing Urban Airship in Android Studio gives compile issues?

China☆狼群 提交于 2020-01-13 13:01:08
问题 I'm new to Android Studio and i want to implement Urban Airship in one of my projects. I followed the example on their website with the .aar file and I ended up getting this error. Error: [/Users/AndroidstudioProjects/MyApplication/app/build/intermediates/exploded-aar/com.urbanairship/urbanairship-lib/5.1.0/AndroidManifest.xml:8] Invalid instruction 'overrideLibrary', valid instructions are : REMOVE,REPLACE,STRICT Correct me if I'm wrong but doesn't this mean that they have issues in their

Importing Urban Airship in Android Studio gives compile issues?

ⅰ亾dé卋堺 提交于 2020-01-13 13:01:08
问题 I'm new to Android Studio and i want to implement Urban Airship in one of my projects. I followed the example on their website with the .aar file and I ended up getting this error. Error: [/Users/AndroidstudioProjects/MyApplication/app/build/intermediates/exploded-aar/com.urbanairship/urbanairship-lib/5.1.0/AndroidManifest.xml:8] Invalid instruction 'overrideLibrary', valid instructions are : REMOVE,REPLACE,STRICT Correct me if I'm wrong but doesn't this mean that they have issues in their

Where to find debug info about obsolete API in Android Studio?

心不动则不痛 提交于 2020-01-13 10:09:23
问题 In AS version 3.3 we can now set in gradle.properties file the android.debug.obsoleteApi=true flag, which allows us to see API calls that are no longer supported. According to the article on AS blog it can now provide more detailed information to help you determine where that API is being used My question is, where can I find this kind of information? I looked into Build and Inspection Results window but I couldn't find any kind of information about obsolete API calls. 回答1: You can find it at

Android Studio: How to see sources for android support v4 and v7?

試著忘記壹切 提交于 2020-01-13 09:40:11
问题 In Android Studio support library appcompat (for ActionBar) is defined as Gradle dependency. dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:21.0.3' } That resolves to get v4 as well. How to see source when clicking to into classes? e.g. android.support.v4.widget.DrawerLayout Currently Android Studio says // IntelliJ API Decompiler stub source generated from a class file // Implementation of methods is not available For ADT it was How

How to let AndroidStudio show all compile errors at once?

冷暖自知 提交于 2020-01-13 08:51:08
问题 Reluctantly I turned from Eclipse to AndroidStudio for developing apps (only for that). What is really annoying to me is that AndroidStudio does not show all compile errors at once or I haven't found the right option till now. Given these stupid classes first everything is fine: A.kt package so class A(val a: Int) { fun add(b: Int): Int { return a + b } } B.kt package so class B { fun foo() { val a = A(1) val c = a.add(2) } } C.kt package so class C { fun bar() { val a = A(3) val c = a.add(4)

How to let AndroidStudio show all compile errors at once?

£可爱£侵袭症+ 提交于 2020-01-13 08:51:08
问题 Reluctantly I turned from Eclipse to AndroidStudio for developing apps (only for that). What is really annoying to me is that AndroidStudio does not show all compile errors at once or I haven't found the right option till now. Given these stupid classes first everything is fine: A.kt package so class A(val a: Int) { fun add(b: Int): Int { return a + b } } B.kt package so class B { fun foo() { val a = A(1) val c = a.add(2) } } C.kt package so class C { fun bar() { val a = A(3) val c = a.add(4)

Android Studio 3.5 Cause: buildOutput.apkData must not be null Clean & Rebuild already tried

巧了我就是萌 提交于 2020-01-13 08:50:28
问题 After I've updated Android Studio 3.4 to 3.5 and wanted to build a Signed APK, however I get the error : Cause: buildOutput.apkData must not be null Error I've already tried to Clean & Make the Project and to Clean & Rebuild the Project, with no success. I am using Android Gradle 3.5.0 & Gradle Version 5.4.1 回答1: This issue happens after update my Android studio v3.4 to v3.5 Now, it is working fine I fixed this issue by deleting debug/output.json and release/output.json files otherwise change