Project

General

Profile

Actions

Epic #51

closed

Feature #47: Enable mobile version of CMSDisplay

Epic #48: Enable android version for CMSDisplay

Change API_LEVEL to 31

Added by Fernando Jose Capeletto Neto over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Start date:
04/15/2023
Due date:
04/19/2023
% Done:

100%

Estimated time:
8:00 h
Spent time:

Description

requirement to be published in Google Play
Actions #1

Updated by Fernando Jose Capeletto Neto over 1 year ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 10
Actions #2

Updated by Fernando Jose Capeletto Neto over 1 year ago

  • Description updated (diff)
  • % Done changed from 10 to 30

We had to remove/add android platform again matching to the correct version.

cordova platform remove android

Fernando J Capeletto@COISUDINHO MINGW64 /c/workspace/CMSDisplay (20230413_cmsdisplayapp)
$ cordova platform remove android

You have been opted out of telemetry. To change this, run: cordova telemetry on.
Removing android from cordova.platforms array in package.json

Fernando J Capeletto@COISUDINHO MINGW64 /c/workspace/CMSDisplay (20230413_cmsdisplayapp)
$ cordova platform add android@11

You have been opted out of telemetry. To change this, run: cordova telemetry on.
Using cordova-fetch for cordova-android@11
Adding android project...
Creating Cordova project for the Android platform:
        Path: platforms\android
        Package: engineer.fernando.cms.cmsdisplay
        Name: CMSDisplayApp
        Activity: MainActivity
        Android Target SDK: android-32
        Android Compile SDK: 32
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@11.0.0
cordova platform add android@11

Actions #3

Updated by Fernando Jose Capeletto Neto over 1 year ago

After upgrade to cordova-android 11, we had to set enviroment variable ANDROID_HOME (ANDROID_SDK_ROOT is deprecated)
We also had this incompatibility error (we are using Java 8 for target level 30, and now is requiring Java 11)

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\workspace\CMSDisplay\platforms\android\app\build.gradle' line: 20

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin 'com.android.internal.application'.
   > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
     Your current JDK is located in  C:\Java\jdk1.8.0_361\jre
     You can try some of the following options:
       - changing the IDE settings.
       - changing the JAVA_HOME environment variable.
       - changing `org.gradle.java.home` in `gradle.properties`.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

Actions #4

Updated by Fernando Jose Capeletto Neto over 1 year ago

  • % Done changed from 30 to 50

After update to JDK11 and update JAVA_HOME and java dir on PATH, cordova build worked.

Actions #5

Updated by Fernando Jose Capeletto Neto over 1 year ago

  • % Done changed from 50 to 80
Actions #6

Updated by Fernando Jose Capeletto Neto over 1 year ago

  • Status changed from In Progress to Testing
  • % Done changed from 80 to 90
Actions #7

Updated by Fernando Jose Capeletto Neto over 1 year ago

  • Status changed from Testing to Merging
Actions #8

Updated by Fernando Jose Capeletto Neto over 1 year ago

  • Due date set to 04/19/2023
Actions #9

Updated by Fernando Jose Capeletto Neto over 1 year ago

  • Status changed from Merging to Testing
Actions #10

Updated by Fernando Jose Capeletto Neto over 1 year ago

  • Status changed from Testing to Deliver
Actions #11

Updated by Fernando Jose Capeletto Neto over 1 year ago

  • Status changed from Deliver to Done
Actions #12

Updated by Fernando Jose Capeletto Neto over 1 year ago

  • Status changed from Done to Closed
Actions #13

Updated by Fernando Jose Capeletto Neto over 1 year ago

  • % Done changed from 90 to 100
Actions

Also available in: Atom PDF