Closed Charles045 closed 1 month ago
Hello,
how did you integrated the freeRASP? The maven { url "https://nexus3-public.monetplus.cz/repository/ahead-talsec-free-rasp" }
should not be in the gradle of your app.
Did you install the plugin using flutter pub add freerasp
, exactly as described in the documentation?
Kind regards, Talsec team
Hello @Charles045
We deprecated Nexus deployment in freeRASP version 6.5.1, so the fix you implemented is invalid. Although I can't replicate the issue locally, the logs suggest that Gradle is attempting to locate the MobLink dependency in our Maven repository.
Could you please provide a list of all the dependencies you're using? Specifically, I need:
pubspec.yaml
-> dependencies)android/app/build.gradle
-> dependencies section at the bottom)Kind regards, Jaroslav from Talsec Team
I tried to fix the android gradle config to resolve above issue, but there is still no effective solution. I hope to get some hints on this issue.
FAILURE: Build failed with an exception.
Execution failed for task ':app:checkDebugAarMetadata'.
Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
The project declares repositories, effectively ignoring the repositories you have declared in the settings.
You can figure out how project repositories are declared by configuring your build to fail on project repositories.
See https://docs.gradle.org/7.5/userguide/declaring_repositories.html#sub:fail_build_on_project_repositories for details.
Could not find com.aheaditec.talsec.security:TalsecSecurity-Community-Flutter:9.6.0. Searched in the following locations:
Required by: project :app > project :freerasp
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.
my flutter project config file info:
flutter pubspect.yaml major dependencies
environment: sdk: '>=3.1.0 <4.0.0'
dependencies: flutter: sdk: flutter cupertino_icons: ^1.0.6 freerasp: ^6.6.0 mobcommonlib: ^1.1.5 mobpush_plugin: ^1.2.5 moblink: ^3.4.7
pluginManagement {
def flutterSdkPath = {
def properties = new Properties()
file("local.properties").withInputStream { properties.load(it) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
return flutterSdkPath
}()
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
repositories {
gradlePluginPortal()
google()
mavenCentral()
maven { url "https://storage.flutter-io.cn/download.flutter.io" }
maven { url "https://mvn.mob.com/android" }
maven { url "https://developer.huawei.com/repo/" }
}
}
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
repositories {
gradlePluginPortal()
google()
mavenCentral()
maven { url "https://storage.flutter-io.cn/download.flutter.io" }
maven { url "https://mvn.mob.com/android" }
maven { url "https://developer.huawei.com/repo/" }
}
}
include ":app"
buildscript {
ext.kotlin_version = '1.7.10'
dependencies {
classpath "com.android.tools.build:gradle:7.3.0"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.mob.sdk:MobSDK2:+"
classpath "com.huawei.agconnect:agcp:1.8.0.300"
}
}
plugins {
id "com.android.application" version "7.3.0" apply false
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
}
allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
Hello.
I've tried to replicate the issue but with no luck. From what I can see in your Gradle dependencies, a some sort of geolocation blocking or VPN could be source of an issue.
Kind regards, Jaroslav from Talsec
Hello! This issue has been marked as inactive. If there is no further activity within the next 14 days, this issue will be automatically closed. If you believe this issue is still relevant and requires attention, please comment or provide additional information.
Hello! This issue has been closed. If you believe this issue is still relevant and requires attention, please reopen the issue.
my flutter app config: android -> build.gradle buildscript { ext.kotlin_version = '1.7.10' repositories { google() mavenCentral() maven { url "https://mvn.mob.com/android" } maven { url "https://developer.huawei.com/repo/" } } dependencies { classpath "com.android.tools.build:gradle:7.3.0" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "com.mob.sdk:MobSDK2:+" classpath "com.huawei.agconnect:agcp:1.8.0.300" } }
allprojects { repositories { google() mavenCentral() maven { url "https://mvn.mob.com/android" } maven { url "https://developer.huawei.com/repo/" } maven { url "https://storage.googleapis.com/download.flutter.io" } maven { url "https://nexus3-public.monetplus.cz/repository/ahead-talsec-free-rasp" } maven { url 'https://www.jitpack.io' } } }
how to resolve this issue?