Bonjour Anytime I use any of these functions, I get the error : The application's minSdkVersion is newer than the device API level.
LocalDate.now();
YearMonth yearMonth = YearMonth.from(date);
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MMMM yyyy");
String recher_mois=date.format(formatter).toString();
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MMMM yyyy");
The API level min is 26 to use this functions and my tablet is 22
Is there another way to call these functions? an old fashion or a cross level way? or do I have to buy another tablet to test my app?
Beside that, the app functions well on my 2020 phone.
Thanks in advance for your help David
Here what I tried i did modify the gradle
android {
compileSdk 32
defaultConfig {
applicationId "com.example.calendriernew"
minSdk 22
targetSdk 32
versionCode 2
versionName "1.0"
//ajout pour time
multiDexEnabled true
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
}
//funtion compileoptions ajout pour time
compileOptions {
// Flag to enable support for the new language APIs
coreLibraryDesugaringEnabled true
// Sets Java compatibility to Java 8
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.9'
}
Now I got the error:
Installation failed due to: 'Failed to commit install session 1719068954 with command pm install-commit 1719068954. Error: INSTALL_FAILED_VERIFICATION_FAILURE'
I did update the tablet but same problem
Finaly it works Maybe I had to restart
I leave my post, maybe it will help
Thank you