Status Update
Comments
sa...@gmail.com <sa...@gmail.com> #2
We use build flavours heavily with a lot of common code. The refactoring support in AS is really good but it continually catches us out when it doesn't work across all flavours in a project. It's a big gap for serious product development.
to...@gmail.com <to...@gmail.com> #3
We at my company need this same feature. We have a lot of white labels and need refactor the same class across flavours. :(
hu...@google.com <hu...@google.com> #4
I need this feature too...
Description
I use Android Studio 2.2 Alpha 5.
Now I start to code a program that use firebase:messaging:9.2.1
When I build my project, I get an error.
If I use firebase:messaging:9.0.2 all is well.
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/common/internal/zzab;
Information:BUILD FAILED
Information:Total time: 8.128 secs
Error:FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/common/internal/zzab;
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
my build.gradle file:
buildscript {
repositories {
maven { url '
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'com.google.gms.google-services'
repositories {
maven { url '
}
android {
compileSdkVersion 24
buildToolsVersion "24.0.0"
defaultConfig {
applicationId "org.mosdev.redfonmessenger"
minSdkVersion 14
targetSdkVersion 24
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:24.1.0'
compile 'com.google.firebase:firebase-messaging:9.0.2' //9.2.1 do not work
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha4'
testCompile 'junit:junit:4.12'
compile('com.crashlytics.sdk.android:crashlytics:2.6.0@aar') {
transitive = true;
}
compile('com.crashlytics.sdk.android:answers:1.3.8@aar') {
transitive = true;
}
compile('com.digits.sdk.android:digits:1.11.1@aar') {
transitive = true;
}
}
Kind regards, Toni Weber