setTheme(R.style.AppTheme) not working when creating APK












0















I display a splash screen on my Android app by using a theme for loading. In the MainActivity I change the theme using setTheme. It works when I build the app from Android Studio on the emulator (it compiles and runs). When I try to build an APK using Build->Build APKs, I get an error.



E:AndroidStudioProjectsgbfeaturesrcmainjavacomzwsigbfeatureMainActivity.kt: (25, 20): Unresolved reference: style



What is different when building APK vs. building an app?



AndroidManifest.xml



<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.perrochon.gb">

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme.Launcher">
<meta-data
android:name="aia-compat-api-min-version"
android:value="1"/>
</application>
</manifest>


styles.xml



<resources>
<style name="AppTheme" parent="Theme.AppCompat.NoActionBar">
<item name="android:windowBackground">@drawable/app_background</item>
</style>

<style name="AppTheme.Launcher">
<item name="android:windowBackground">@drawable/launch_background</item>
</style>

</resources>


MainActivity.kt



class MainActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {

setTheme(R.style.AppTheme) // TODO switch back from the Launcher Theme, but this won't compile to APK
// setTheme(R.style.AppTheme) works in Android Studio -> Emulator, but not when building APKs. Error is
// E:AndroidStudioProjectsgbfeaturesrcmainjavacomzwsigbfeatureMainActivity.kt: (25, 20): Unresolved reference: style

super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)


Edit: Adding build gradle files. I haven't really done anything with the gradel build files, they are the way Android Studio set them up.



build.gradle from gb



buildscript {
ext.kotlin_version = '1.2.71'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
jcenter()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}


build.gradle from gbfeature



apply plugin: 'com.android.feature'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation project(':base')
implementation project(':gblib')
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

}


build.gradle from gbbase



apply plugin: 'com.android.feature'

android {
compileSdkVersion 28
baseFeature true
defaultConfig {
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
api 'com.android.support:appcompat-v7:28.0.0'
api 'com.android.support.constraint:constraint-layout:1.1.3'
api 'com.android.support:support-v4:28.0.0'
application project(':app')
feature project(':feature')
}


build.gradle from gbapp



apply plugin: 'com.android.application'

android {
compileSdkVersion 28



defaultConfig {
applicationId "com.zwsi.gb.app"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"


}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

}

dependencies {
implementation project(':feature')
implementation project(':base')
implementation project(':gblib')
}


I also have gblib directory with a library of non-Android code. build.gradle from gblib



plugins {
id 'org.jetbrains.kotlin.jvm'
}
apply plugin: 'java-library'

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testImplementation 'junit:junit:4.12'
}

sourceCompatibility = "6"
targetCompatibility = "6"
repositories {
mavenCentral()
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}









share|improve this question

























  • The difference is between debug and release build types. Where exactly is your styles.xml?

    – laalto
    Nov 20 '18 at 21:51











  • I think I am buidling debug APKs. That's what the files are named. I think what goes on the emulator is debug, too, no? styles is in E:AndroidStudioProjectsgbbasesrcmainresvaluesstyles.xml (gb is project name). I was wondering about location of styles, and tried to put styles elsewhere, but couldn't make it work that way.

    – L P
    Nov 20 '18 at 23:01













  • Note that the kotlin code that generates the problem is in a different directory. E:AndroidStudioProjectsgbfeaturesrcmainjavacomzwsigbfeatureMainActivity.kt

    – L P
    Nov 20 '18 at 23:10











  • Ok - both are from main but in different modules base and feature - how does feature module include base? build.gradle files please

    – laalto
    Nov 21 '18 at 6:03











  • Thanks @laalto for your help. I added the build.gradle files to the orginal question above. I don'

    – L P
    Nov 21 '18 at 16:12
















0















I display a splash screen on my Android app by using a theme for loading. In the MainActivity I change the theme using setTheme. It works when I build the app from Android Studio on the emulator (it compiles and runs). When I try to build an APK using Build->Build APKs, I get an error.



E:AndroidStudioProjectsgbfeaturesrcmainjavacomzwsigbfeatureMainActivity.kt: (25, 20): Unresolved reference: style



What is different when building APK vs. building an app?



AndroidManifest.xml



<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.perrochon.gb">

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme.Launcher">
<meta-data
android:name="aia-compat-api-min-version"
android:value="1"/>
</application>
</manifest>


styles.xml



<resources>
<style name="AppTheme" parent="Theme.AppCompat.NoActionBar">
<item name="android:windowBackground">@drawable/app_background</item>
</style>

<style name="AppTheme.Launcher">
<item name="android:windowBackground">@drawable/launch_background</item>
</style>

</resources>


MainActivity.kt



class MainActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {

setTheme(R.style.AppTheme) // TODO switch back from the Launcher Theme, but this won't compile to APK
// setTheme(R.style.AppTheme) works in Android Studio -> Emulator, but not when building APKs. Error is
// E:AndroidStudioProjectsgbfeaturesrcmainjavacomzwsigbfeatureMainActivity.kt: (25, 20): Unresolved reference: style

super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)


Edit: Adding build gradle files. I haven't really done anything with the gradel build files, they are the way Android Studio set them up.



build.gradle from gb



buildscript {
ext.kotlin_version = '1.2.71'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
jcenter()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}


build.gradle from gbfeature



apply plugin: 'com.android.feature'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation project(':base')
implementation project(':gblib')
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

}


build.gradle from gbbase



apply plugin: 'com.android.feature'

android {
compileSdkVersion 28
baseFeature true
defaultConfig {
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
api 'com.android.support:appcompat-v7:28.0.0'
api 'com.android.support.constraint:constraint-layout:1.1.3'
api 'com.android.support:support-v4:28.0.0'
application project(':app')
feature project(':feature')
}


build.gradle from gbapp



apply plugin: 'com.android.application'

android {
compileSdkVersion 28



defaultConfig {
applicationId "com.zwsi.gb.app"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"


}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

}

dependencies {
implementation project(':feature')
implementation project(':base')
implementation project(':gblib')
}


I also have gblib directory with a library of non-Android code. build.gradle from gblib



plugins {
id 'org.jetbrains.kotlin.jvm'
}
apply plugin: 'java-library'

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testImplementation 'junit:junit:4.12'
}

sourceCompatibility = "6"
targetCompatibility = "6"
repositories {
mavenCentral()
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}









share|improve this question

























  • The difference is between debug and release build types. Where exactly is your styles.xml?

    – laalto
    Nov 20 '18 at 21:51











  • I think I am buidling debug APKs. That's what the files are named. I think what goes on the emulator is debug, too, no? styles is in E:AndroidStudioProjectsgbbasesrcmainresvaluesstyles.xml (gb is project name). I was wondering about location of styles, and tried to put styles elsewhere, but couldn't make it work that way.

    – L P
    Nov 20 '18 at 23:01













  • Note that the kotlin code that generates the problem is in a different directory. E:AndroidStudioProjectsgbfeaturesrcmainjavacomzwsigbfeatureMainActivity.kt

    – L P
    Nov 20 '18 at 23:10











  • Ok - both are from main but in different modules base and feature - how does feature module include base? build.gradle files please

    – laalto
    Nov 21 '18 at 6:03











  • Thanks @laalto for your help. I added the build.gradle files to the orginal question above. I don'

    – L P
    Nov 21 '18 at 16:12














0












0








0








I display a splash screen on my Android app by using a theme for loading. In the MainActivity I change the theme using setTheme. It works when I build the app from Android Studio on the emulator (it compiles and runs). When I try to build an APK using Build->Build APKs, I get an error.



E:AndroidStudioProjectsgbfeaturesrcmainjavacomzwsigbfeatureMainActivity.kt: (25, 20): Unresolved reference: style



What is different when building APK vs. building an app?



AndroidManifest.xml



<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.perrochon.gb">

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme.Launcher">
<meta-data
android:name="aia-compat-api-min-version"
android:value="1"/>
</application>
</manifest>


styles.xml



<resources>
<style name="AppTheme" parent="Theme.AppCompat.NoActionBar">
<item name="android:windowBackground">@drawable/app_background</item>
</style>

<style name="AppTheme.Launcher">
<item name="android:windowBackground">@drawable/launch_background</item>
</style>

</resources>


MainActivity.kt



class MainActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {

setTheme(R.style.AppTheme) // TODO switch back from the Launcher Theme, but this won't compile to APK
// setTheme(R.style.AppTheme) works in Android Studio -> Emulator, but not when building APKs. Error is
// E:AndroidStudioProjectsgbfeaturesrcmainjavacomzwsigbfeatureMainActivity.kt: (25, 20): Unresolved reference: style

super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)


Edit: Adding build gradle files. I haven't really done anything with the gradel build files, they are the way Android Studio set them up.



build.gradle from gb



buildscript {
ext.kotlin_version = '1.2.71'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
jcenter()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}


build.gradle from gbfeature



apply plugin: 'com.android.feature'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation project(':base')
implementation project(':gblib')
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

}


build.gradle from gbbase



apply plugin: 'com.android.feature'

android {
compileSdkVersion 28
baseFeature true
defaultConfig {
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
api 'com.android.support:appcompat-v7:28.0.0'
api 'com.android.support.constraint:constraint-layout:1.1.3'
api 'com.android.support:support-v4:28.0.0'
application project(':app')
feature project(':feature')
}


build.gradle from gbapp



apply plugin: 'com.android.application'

android {
compileSdkVersion 28



defaultConfig {
applicationId "com.zwsi.gb.app"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"


}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

}

dependencies {
implementation project(':feature')
implementation project(':base')
implementation project(':gblib')
}


I also have gblib directory with a library of non-Android code. build.gradle from gblib



plugins {
id 'org.jetbrains.kotlin.jvm'
}
apply plugin: 'java-library'

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testImplementation 'junit:junit:4.12'
}

sourceCompatibility = "6"
targetCompatibility = "6"
repositories {
mavenCentral()
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}









share|improve this question
















I display a splash screen on my Android app by using a theme for loading. In the MainActivity I change the theme using setTheme. It works when I build the app from Android Studio on the emulator (it compiles and runs). When I try to build an APK using Build->Build APKs, I get an error.



E:AndroidStudioProjectsgbfeaturesrcmainjavacomzwsigbfeatureMainActivity.kt: (25, 20): Unresolved reference: style



What is different when building APK vs. building an app?



AndroidManifest.xml



<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.perrochon.gb">

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme.Launcher">
<meta-data
android:name="aia-compat-api-min-version"
android:value="1"/>
</application>
</manifest>


styles.xml



<resources>
<style name="AppTheme" parent="Theme.AppCompat.NoActionBar">
<item name="android:windowBackground">@drawable/app_background</item>
</style>

<style name="AppTheme.Launcher">
<item name="android:windowBackground">@drawable/launch_background</item>
</style>

</resources>


MainActivity.kt



class MainActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {

setTheme(R.style.AppTheme) // TODO switch back from the Launcher Theme, but this won't compile to APK
// setTheme(R.style.AppTheme) works in Android Studio -> Emulator, but not when building APKs. Error is
// E:AndroidStudioProjectsgbfeaturesrcmainjavacomzwsigbfeatureMainActivity.kt: (25, 20): Unresolved reference: style

super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)


Edit: Adding build gradle files. I haven't really done anything with the gradel build files, they are the way Android Studio set them up.



build.gradle from gb



buildscript {
ext.kotlin_version = '1.2.71'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
jcenter()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}


build.gradle from gbfeature



apply plugin: 'com.android.feature'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation project(':base')
implementation project(':gblib')
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

}


build.gradle from gbbase



apply plugin: 'com.android.feature'

android {
compileSdkVersion 28
baseFeature true
defaultConfig {
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
api 'com.android.support:appcompat-v7:28.0.0'
api 'com.android.support.constraint:constraint-layout:1.1.3'
api 'com.android.support:support-v4:28.0.0'
application project(':app')
feature project(':feature')
}


build.gradle from gbapp



apply plugin: 'com.android.application'

android {
compileSdkVersion 28



defaultConfig {
applicationId "com.zwsi.gb.app"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"


}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

}

dependencies {
implementation project(':feature')
implementation project(':base')
implementation project(':gblib')
}


I also have gblib directory with a library of non-Android code. build.gradle from gblib



plugins {
id 'org.jetbrains.kotlin.jvm'
}
apply plugin: 'java-library'

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testImplementation 'junit:junit:4.12'
}

sourceCompatibility = "6"
targetCompatibility = "6"
repositories {
mavenCentral()
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}






android-studio android-layout kotlin splash-screen






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 '18 at 16:10







L P

















asked Nov 20 '18 at 21:49









L PL P

11




11













  • The difference is between debug and release build types. Where exactly is your styles.xml?

    – laalto
    Nov 20 '18 at 21:51











  • I think I am buidling debug APKs. That's what the files are named. I think what goes on the emulator is debug, too, no? styles is in E:AndroidStudioProjectsgbbasesrcmainresvaluesstyles.xml (gb is project name). I was wondering about location of styles, and tried to put styles elsewhere, but couldn't make it work that way.

    – L P
    Nov 20 '18 at 23:01













  • Note that the kotlin code that generates the problem is in a different directory. E:AndroidStudioProjectsgbfeaturesrcmainjavacomzwsigbfeatureMainActivity.kt

    – L P
    Nov 20 '18 at 23:10











  • Ok - both are from main but in different modules base and feature - how does feature module include base? build.gradle files please

    – laalto
    Nov 21 '18 at 6:03











  • Thanks @laalto for your help. I added the build.gradle files to the orginal question above. I don'

    – L P
    Nov 21 '18 at 16:12



















  • The difference is between debug and release build types. Where exactly is your styles.xml?

    – laalto
    Nov 20 '18 at 21:51











  • I think I am buidling debug APKs. That's what the files are named. I think what goes on the emulator is debug, too, no? styles is in E:AndroidStudioProjectsgbbasesrcmainresvaluesstyles.xml (gb is project name). I was wondering about location of styles, and tried to put styles elsewhere, but couldn't make it work that way.

    – L P
    Nov 20 '18 at 23:01













  • Note that the kotlin code that generates the problem is in a different directory. E:AndroidStudioProjectsgbfeaturesrcmainjavacomzwsigbfeatureMainActivity.kt

    – L P
    Nov 20 '18 at 23:10











  • Ok - both are from main but in different modules base and feature - how does feature module include base? build.gradle files please

    – laalto
    Nov 21 '18 at 6:03











  • Thanks @laalto for your help. I added the build.gradle files to the orginal question above. I don'

    – L P
    Nov 21 '18 at 16:12

















The difference is between debug and release build types. Where exactly is your styles.xml?

– laalto
Nov 20 '18 at 21:51





The difference is between debug and release build types. Where exactly is your styles.xml?

– laalto
Nov 20 '18 at 21:51













I think I am buidling debug APKs. That's what the files are named. I think what goes on the emulator is debug, too, no? styles is in E:AndroidStudioProjectsgbbasesrcmainresvaluesstyles.xml (gb is project name). I was wondering about location of styles, and tried to put styles elsewhere, but couldn't make it work that way.

– L P
Nov 20 '18 at 23:01







I think I am buidling debug APKs. That's what the files are named. I think what goes on the emulator is debug, too, no? styles is in E:AndroidStudioProjectsgbbasesrcmainresvaluesstyles.xml (gb is project name). I was wondering about location of styles, and tried to put styles elsewhere, but couldn't make it work that way.

– L P
Nov 20 '18 at 23:01















Note that the kotlin code that generates the problem is in a different directory. E:AndroidStudioProjectsgbfeaturesrcmainjavacomzwsigbfeatureMainActivity.kt

– L P
Nov 20 '18 at 23:10





Note that the kotlin code that generates the problem is in a different directory. E:AndroidStudioProjectsgbfeaturesrcmainjavacomzwsigbfeatureMainActivity.kt

– L P
Nov 20 '18 at 23:10













Ok - both are from main but in different modules base and feature - how does feature module include base? build.gradle files please

– laalto
Nov 21 '18 at 6:03





Ok - both are from main but in different modules base and feature - how does feature module include base? build.gradle files please

– laalto
Nov 21 '18 at 6:03













Thanks @laalto for your help. I added the build.gradle files to the orginal question above. I don'

– L P
Nov 21 '18 at 16:12





Thanks @laalto for your help. I added the build.gradle files to the orginal question above. I don'

– L P
Nov 21 '18 at 16:12












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53402095%2fsetthemer-style-apptheme-not-working-when-creating-apk%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53402095%2fsetthemer-style-apptheme-not-working-when-creating-apk%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Can a sorcerer learn a 5th-level spell early by creating spell slots using the Font of Magic feature?

Does disintegrating a polymorphed enemy still kill it after the 2018 errata?

A Topological Invariant for $pi_3(U(n))$