Closed lcuis closed 2 years ago
Hi @lcuis,
There are multiple issues in your build.gradle
. The main issue is in your buildscript dependencies. Talsec is not a buildscript dependency. You should remove the following line:
classpath 'com.aheaditec.talsec.security:TalsecSecurity-Community:3.1.0-dev'
Another issue is the incorrect definition of repository in allprojects. You are missing the maven before the url, and the url shouldn't contain brackets.
Repository definition in allprojects should look like this:
allprojects {
repositories {
google()
jcenter()
maven {url "https://nexus3-public.monetplus.cz/repository/ahead-talsec-free-rasp" }
}
}
Your project's build.gradle should finally look like this:
buildscript {
ext.kotlin_version = '1.5.21'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
jcenter()
maven {url "https://nexus3-public.monetplus.cz/repository/ahead-talsec-free-rasp" }
}
}
The dependency com.aheaditec.talsec.security:TalsecSecurity-Community:3.1.0-dev
should be in your module's build.gradle (a different file!) in the dependencies section.
And it should be like this:
[build.gradle (:app)]
...
dependencies {
implementation 'com.aheaditec.talsec.security:TalsecSecurity-Community:3.1.0-dev'
...
If you are still unsure about the integration, DM us: info@talsec.app, and we can assist you.
Note: jcenter() repository is deprecated and we recommend to use mavenCentral() instead.
Thanks you very much for your reply. I am looking forward to trying this!
I confirm I can build, thanks!
Hi,
I tried following the instructions in #2 .
I reached a point where the compilation error was partially understandable.
Here is the important portion of my
android/build.gradle
file:And here is the complete unedited run output with the error message:
When I try to open the pom file
https://jcenter.bintray.com/com/aheaditec/talsec/security/TalsecSecurity-Community/3.1.0-dev/TalsecSecurity-Community-3.1.0-dev.pom
directly, I get this output:Is there a way to gain access to this file and any other relevant ones?
Or, is there a convenient way to use the aar files without creating a module?