S
Schorsch2014
Neues Mitglied
- 3
Hello,
Last year I developed a calendar management app with Android Studio 1.1, which worked flawlessly on both Android 2.3.3 (Gingerbread) and Android 4.1.2 (Jelly Bean).
After trying to run this app on Android 6.0.2 or 7.0 this year, I get an error message: "Calendar management paused" (German: "Kalender-Verwaltung angehalten").
Then I installed Android Studio 2.3.1, but had to de-install and re-install the development environment (and the Java IDE) several times before I finally got back to the SDK manager.
Meanwhile, the app runs again under Android 4.1.2 (with slightly different color settings, etc.), but still not under Rel. 6.0.2 (Marshmallow), for example.
Unfortunately, I have no idea what it could be, especially since I specified API 25 as compileSdkVersion and as targetSdkVersion (see the contents of build.gradle (Module: app) below):
build.gradle (Module: app):
===========================
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "hjb.kalender"
minSdkVersion 16
targetSdkVersion 25
versionCode 3
versionName "3.0 - 20171128"
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:27.+'
compile 'com.android.support:appcompat-v7:25.0.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
}
build.gradle (Project: Calendar):
=================================
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
What could be the reason that my app does not run under higher versions (up to API 25) ?
Last year I developed a calendar management app with Android Studio 1.1, which worked flawlessly on both Android 2.3.3 (Gingerbread) and Android 4.1.2 (Jelly Bean).
After trying to run this app on Android 6.0.2 or 7.0 this year, I get an error message: "Calendar management paused" (German: "Kalender-Verwaltung angehalten").
Then I installed Android Studio 2.3.1, but had to de-install and re-install the development environment (and the Java IDE) several times before I finally got back to the SDK manager.
Meanwhile, the app runs again under Android 4.1.2 (with slightly different color settings, etc.), but still not under Rel. 6.0.2 (Marshmallow), for example.
Unfortunately, I have no idea what it could be, especially since I specified API 25 as compileSdkVersion and as targetSdkVersion (see the contents of build.gradle (Module: app) below):
build.gradle (Module: app):
===========================
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "hjb.kalender"
minSdkVersion 16
targetSdkVersion 25
versionCode 3
versionName "3.0 - 20171128"
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:27.+'
compile 'com.android.support:appcompat-v7:25.0.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
}
build.gradle (Project: Calendar):
=================================
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
What could be the reason that my app does not run under higher versions (up to API 25) ?