You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to upgrade my Android miniapp compileSDKVersion and targetSDKversion to 34. While i was able to upgrade the version in electrode native container, deploying it causes subsequent dependencies issues related to version mismatch.
I use the github workflow file below to deploy the electrode native container.
When running ./gradlew assembleRelease and ./gradlew publish, the following error occurs.
Run ./gradlew assembleRelease
./gradlew assembleRelease
shell: /usr/bin/bash -e {0}
env:
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.1[2](https://github.com/pai-seocho/manual-billing-system-miniapp-android/actions/runs/10827331628/job/30040251574#step:7:2)-7/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.12-7/x64
> Configure project :lib
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
WARNING: The specified Android SDK Build Tools version ([3](https://github.com/pai-seocho/manual-billing-system-miniapp-android/actions/runs/10827331628/job/30040251574#step:7:3)3.0.0) is ignored, as it is below the minimum supported version (33.0.1) for Android Gradle Plugin 8.1.1.
Android SDK Build Tools 33.0.1 will be used.
To suppress this warning, remove "buildToolsVersion '33.0.0'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
WARNING: The specified Android SDK Build Tools version (33.0.0) is ignored, as it is below the minimum supported version (33.0.1) for Android Gradle Plugin 8.1.1.
Android SDK Build Tools 33.0.1 will be used.
To suppress this warning, remove "buildToolsVersion '33.0.0'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
Checking the license for package Android SDK Platform-Tools in /usr/local/lib/android/sdk/licenses
License for package Android SDK Platform-Tools accepted.
Preparing "Install Android SDK Platform-Tools v.35.0.2".
"Install Android SDK Platform-Tools v.35.0.2" ready.
Installing Android SDK Platform-Tools in /usr/local/lib/android/sdk/platform-tools
"Install Android SDK Platform-Tools v.35.0.2" complete.
"Install Android SDK Platform-Tools v.35.0.2" finished.
> Task :lib:preBuild UP-TO-DATE
> Task :lib:preReleaseBuild UP-TO-DATE
> Task :lib:mergeReleaseJniLibFolders
> Task :lib:mergeReleaseNativeLibs NO-SOURCE
> Task :lib:stripReleaseDebugSymbols NO-SOURCE
> Task :lib:copyReleaseJniLibsProjectAndLocalJars
> Task :lib:generateReleaseResValues
> Task :lib:extractDeepLinksForAarRelease
> Task :lib:generateReleaseResources
> Task :lib:packageReleaseResources
> Task :lib:parseReleaseLocalResources
> Task :lib:javaPreCompileRelease
> Task :lib:processReleaseManifest
> Task :lib:mergeReleaseShaders
> Task :lib:compileReleaseShaders NO-SOURCE
> Task :lib:generateReleaseAssets UP-TO-DATE
> Task :lib:packageReleaseAssets
> Task :lib:generateReleaseRFile
> Task :lib:prepareLintJarForPublish
> Task :lib:compileReleaseKotlin FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':lib:compileReleaseKotlin'.
> Error while evaluating property 'filteredArgumentsMap' of task ':lib:compileReleaseKotlin'.
> Could not resolve all files for configuration ':lib:releaseCompileClasspath'.
> Cannot resolve external dependency androidx.appcompat:appcompat:1.1.0 because no repositories are defined.
Required by:
project :lib
> Cannot resolve external dependency androidx.lifecycle:lifecycle-extensions:2.2.0 because no repositories are defined.
Required by:
project :lib
> Cannot resolve external dependency androidx.swiperefreshlayout:swiperefreshlayout:1.1.0 because no repositories are defined.
Required by:
project :lib
> Cannot resolve external dependency com.walmartlabs.ern:ern.navigation.support.lib:0.0.1 because no repositories are defined.
Required by:
project :lib
> Cannot resolve external dependency com.google.zxing:core:3.3.3 because no repositories are defined.
Required by:
project :lib
> Cannot resolve external dependency com.drewnoakes:metadata-extractor:2.11.0 because no repositories are defined.
Required by:
project :lib
> Cannot resolve external dependency com.google.firebase:firebase-ml-vision:19.0.3 because no repositories are defined.
Required by:
project :lib
> Cannot resolve external dependency com.google.firebase:firebase-ml-vision-face-model:17.0.2 because no repositories are defined.
Required by:
project :lib
> Cannot resolve external dependency com.google.android.gms:play-services-mlkit-text-recognition:16.3.0 because no repositories are defined.
Required by:
project :lib
> Cannot resolve external dependency com.google.android.gms:play-services-mlkit-barcode-scanning:16.2.0 because no repositories are defined.
Required by:
project :lib
> Cannot resolve external dependency com.google.android.gms:play-services-mlkit-face-detection:16.2.0 because no repositories are defined.
Required by:
project :lib
> Cannot resolve external dependency androidx.exifinterface:exifinterface:1.3.2 because no repositories are defined.
Required by:
project :lib
> Cannot resolve external dependency androidx.annotation:annotation:1.0.0 because no repositories are defined.
Required by:
project :lib
> Cannot resolve external dependency androidx.legacy:legacy-support-v[4](https://github.com/pai-seocho/manual-billing-system-miniapp-android/actions/runs/10827331628/job/30040251574#step:7:4):1.0.0 because no repositories are defined.
Required by:
project :lib
> Cannot resolve external dependency com.vanniktech:android-image-cropper:4.3.3 because no repositories are defined.
Required by:
project :lib
> Cannot resolve external dependency com.google.code.gson:gson:2.8.[5](https://github.com/pai-seocho/manual-billing-system-miniapp-android/actions/runs/10827331628/job/30040251574#step:7:5) because no repositories are defined.
Required by:
project :lib
> Cannot resolve external dependency org.jetbrains.kotlin:kotlin-stdlib:1.[7](https://github.com/pai-seocho/manual-billing-system-miniapp-android/actions/runs/10827331628/job/30040251574#step:7:8).22 because no repositories are defined.
Required by:
project :lib
> Cannot resolve external dependency androidx.webkit:webkit:1.4.0 because no repositories are defined.
Required by:
project :lib
> Cannot resolve external dependency com.facebook.react:react-native:+ because no repositories are defined.
Required by:
project :lib
> Cannot resolve external dependency com.github.mhiew:android-pdf-viewer:3.2.0-beta.3 because no repositories are defined.
Required by:
project :lib
* 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.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/[8](https://github.com/pai-seocho/manual-billing-system-miniapp-android/actions/runs/10827331628/job/30040251574#step:7:9).1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in [9](https://github.com/pai-seocho/manual-billing-system-miniapp-android/actions/runs/10827331628/job/30040251574#step:7:10)s
13 actionable tasks: 13 executed
Somehow the gradle is unable to locate project dependencies. I believe this happens because of dependencies that do not align with Android API version 34.
Things I have tried
I have changed the settings in lib/build.gradle and build.gradle as follows.
First I upgraded SDK version to 34. But then I needed to have upgraded Java to 17 as well as gradle plugin to 8.1.1, so I did that.
I also had to upgrade project gradle version to 8.1.
I have put bunch of repositories path like maven { url 'https://jitpack.io' }, maven { url "https://jcenter.bintray.com"}, gradlePluginPortal() because maven seemed to not able to find the right directory to the package.
android-pdf-viewer-3.1.0-beta.1 dependency have caused a specific error message so I downgraded to 2.8.2
I have also tried putting
resolutionStrategy {
dependencySubstitution { // ---->> Add this
substitute(module("com.github.barteksc:android-pdf-viewer")).using(module("com.github.mhiew:android-pdf-viewer:3.2.0-beta.3")).because("401 error in main repo")
}
code snippet, but it did not work.
The error message in the intro is the last error message I have encountered without being able to think of another solution.
Solving one dependency problem reveals a problem in another dependencies. So I'm assuming there needs to be a version upgrade for the whole dependencies. But I'm having hard time figuring out which version to upgrade to, or which version is compatible for Android API 34.
If someone could provide me some kind of guidance to move forward, I would very much appreciate it.
Note about dependencies
Dependencies that are causing the problem are required for my project. Below is the dependency section of package.json file
Issue
I need to upgrade my Android miniapp compileSDKVersion and targetSDKversion to 34. While i was able to upgrade the version in electrode native container, deploying it causes subsequent dependencies issues related to version mismatch.
I use the github workflow file below to deploy the electrode native container.
When running ./gradlew assembleRelease and ./gradlew publish, the following error occurs.
Somehow the gradle is unable to locate project dependencies. I believe this happens because of dependencies that do not align with Android API version 34.
Things I have tried
I have changed the settings in lib/build.gradle and build.gradle as follows.
lib/build.gradle
build.gradle
the original lib/build.gradle and build.gradle looked like this.
lib/build.gradle
build.gradle
First I upgraded SDK version to 34. But then I needed to have upgraded Java to 17 as well as gradle plugin to 8.1.1, so I did that.
I also had to upgrade project gradle version to 8.1.
I have put bunch of repositories path like maven { url 'https://jitpack.io' }, maven { url "https://jcenter.bintray.com"}, gradlePluginPortal() because maven seemed to not able to find the right directory to the package.
android-pdf-viewer-3.1.0-beta.1 dependency have caused a specific error message so I downgraded to 2.8.2
I have also tried putting
code snippet, but it did not work.
The error message in the intro is the last error message I have encountered without being able to think of another solution.
Solving one dependency problem reveals a problem in another dependencies. So I'm assuming there needs to be a version upgrade for the whole dependencies. But I'm having hard time figuring out which version to upgrade to, or which version is compatible for Android API 34.
If someone could provide me some kind of guidance to move forward, I would very much appreciate it.
Note about dependencies
Dependencies that are causing the problem are required for my project. Below is the dependency section of package.json file
The text was updated successfully, but these errors were encountered: