AndroidTacticalAssaultKit-CIV icon indicating copy to clipboard operation
AndroidTacticalAssaultKit-CIV copied to clipboard

Deprecated Gradle features ERROR

Open gitques opened this issue 3 years ago • 5 comments

Hello,

I am following this to setup ATAK-CIV development. But, I got the following errors after finishing "Sync Project with Gradle Files", so I cannot see anything in the Gradle tab. (e.x. assembleCivDebug)

The final message is

Starting Gradle Daemon...
Gradle Daemon started in 379 ms

> Configure project :ATAK:app
versionName[git]: 1fb49280
version[git]: 1657193333
versionName[git]: 1fb49280
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>

> Configure project :takkernel:engine
NDK was located by using ndk.dir property. This method is deprecated and will be removed in a future release. Please use android.ndkVersion or android.ndkPath in build.gradle to specify the NDK to use. https://developer.android.com/r/studio-ui/ndk-dir
NDK was located by using ndk.dir property. This method is deprecated and will be removed in a future release. Please use android.ndkVersion or android.ndkPath in build.gradle to specify the NDK to use. https://developer.android.com/r/studio-ui/ndk-dir
NDK was located by using ndk.dir property. This method is deprecated and will be removed in a future release. Please use android.ndkVersion or android.ndkPath in build.gradle to specify the NDK to use. https://developer.android.com/r/studio-ui/ndk-dir
NDK was located by using ndk.dir property. This method is deprecated and will be removed in a future release. Please use android.ndkVersion or android.ndkPath in build.gradle to specify the NDK to use. https://developer.android.com/r/studio-ui/ndk-dir
NDK was located by using ndk.dir property. This method is deprecated and will be removed in a future release. Please use android.ndkVersion or android.ndkPath in build.gradle to specify the NDK to use. https://developer.android.com/r/studio-ui/ndk-dir
NDK was located by using ndk.dir property. This method is deprecated and will be removed in a future release. Please use android.ndkVersion or android.ndkPath in build.gradle to specify the NDK to use. https://developer.android.com/r/studio-ui/ndk-dir
NDK was located by using ndk.dir property. This method is deprecated and will be removed in a future release. Please use android.ndkVersion or android.ndkPath in build.gradle to specify the NDK to use. https://developer.android.com/r/studio-ui/ndk-dir
NDK was located by using ndk.dir property. This method is deprecated and will be removed in a future release. Please use android.ndkVersion or android.ndkPath in build.gradle to specify the NDK to use. https://developer.android.com/r/studio-ui/ndk-dir
NDK was located by using ndk.dir property. This method is deprecated and will be removed in a future release. Please use android.ndkVersion or android.ndkPath in build.gradle to specify the NDK to use. https://developer.android.com/r/studio-ui/ndk-dir
NDK was located by using ndk.dir property. This method is deprecated and will be removed in a future release. Please use android.ndkVersion or android.ndkPath in build.gradle to specify the NDK to use. https://developer.android.com/r/studio-ui/ndk-dir
NDK was located by using ndk.dir property. This method is deprecated and will be removed in a future release. Please use android.ndkVersion or android.ndkPath in build.gradle to specify the NDK to use. https://developer.android.com/r/studio-ui/ndk-dir
NDK was located by using ndk.dir property. This method is deprecated and will be removed in a future release. Please use android.ndkVersion or android.ndkPath in build.gradle to specify the NDK to use. https://developer.android.com/r/studio-ui/ndk-dir
NDK was located by using ndk.dir property. This method is deprecated and will be removed in a future release. Please use android.ndkVersion or android.ndkPath in build.gradle to specify the NDK to use. https://developer.android.com/r/studio-ui/ndk-dir

> Task :prepareKotlinBuildScriptModel UP-TO-DATE
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.7.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 1m 36s

and the errors are

Unable to resolve dependency for ':ATAK:app@civDebug/compileClasspath': Could not resolve gov.tak.thirdparty:libLAS:1.8.2b1.
Show Details
Affected Modules: app

Unable to resolve dependency for ':ATAK:app@civDebugAndroidTest/compileClasspath': Could not resolve gov.tak.thirdparty:libLAS:1.8.2b1.
Show Details
Affected Modules: app

Unable to resolve dependency for ':ATAK:app@civDebugUnitTest/compileClasspath': Could not resolve gov.tak.thirdparty:takthirdparty:2.5.1.
Show Details
Affected Modules: app

Unable to resolve dependency for ':ATAK:app@civDebug/compileClasspath': Could not resolve gov.tak.thirdparty:takthirdparty:2.5.1.
Show Details
Affected Modules: app

Unable to resolve dependency for ':ATAK:app@civDebugUnitTest/compileClasspath': Could not resolve gov.tak.thirdparty:libLAS:1.8.2b1.
Show Details
Affected Modules: app

Unable to resolve dependency for ':ATAK:app@civDebugAndroidTest/compileClasspath': Could not resolve gov.tak.thirdparty:takthirdparty:2.5.1.
Show Details
Affected Modules: app

NDK was located by using ndk.dir property. This method is deprecated and will be removed in a future release. Please use android.ndkVersion or android.ndkPath in build.gradle to specify the NDK to use. https://developer.android.com/r/studio-ui/ndk-dir
Affected Modules: app
Unable to resolve dependency for ':takkernel:engine@debugUnitTest/compileClasspath': Could not resolve gov.tak.thirdparty:takthirdparty:2.5.1.
Show Details
Affected Modules: engine

Unable to resolve dependency for ':takkernel:engine@debugAndroidTest/compileClasspath': Could not resolve gov.tak.thirdparty:libLAS:1.8.2b1.
Show Details
Affected Modules: engine

Unable to resolve dependency for ':takkernel:engine@debugUnitTest/compileClasspath': Could not resolve gov.tak.thirdparty:libLAS:1.8.2b1.
Show Details
Affected Modules: engine

Unable to resolve dependency for ':takkernel:engine@debugAndroidTest/compileClasspath': Could not resolve gov.tak.thirdparty:takthirdparty:2.5.1.
Show Details
Affected Modules: engine

Unable to resolve dependency for ':takkernel:engine@debug/compileClasspath': Could not resolve gov.tak.thirdparty:takthirdparty:2.5.1.
Show Details
Affected Modules: engine

Unable to resolve dependency for ':takkernel:engine@debug/compileClasspath': Could not resolve gov.tak.thirdparty:libLAS:1.8.2b1.
Show Details
Affected Modules: engine
Unable to resolve dependency for ':takkernel:shared@debug/compileClasspath': Could not resolve gov.tak.thirdparty:takthirdparty:2.5.1.
Show Details
Affected Modules: shared

Unable to resolve dependency for ':takkernel:shared@debug/compileClasspath': Could not resolve gov.tak.thirdparty:libLAS:1.8.2b1.
Show Details
Affected Modules: shared

Unable to resolve dependency for ':takkernel:shared@debugUnitTest/compileClasspath': Could not resolve gov.tak.thirdparty:takthirdparty:2.5.1.
Show Details
Affected Modules: shared

Unable to resolve dependency for ':takkernel:shared@debugAndroidTest/compileClasspath': Could not resolve gov.tak.thirdparty:takthirdparty:2.5.1.
Show Details
Affected Modules: shared

Unable to resolve dependency for ':takkernel:shared@debugUnitTest/compileClasspath': Could not resolve gov.tak.thirdparty:libLAS:1.8.2b1.
Show Details
Affected Modules: shared

Unable to resolve dependency for ':takkernel:shared@debugAndroidTest/compileClasspath': Could not resolve gov.tak.thirdparty:libLAS:1.8.2b1.
Show Details
Affected Modules: shared
The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 7.0 of the Android Gradle plugin.
You will no longer be able to disable R8
Affected Modules: annotation

Is there anyone who can help me to resolve this issue? After fixing this, I would like to start helloworld plugin development.

Thank you.

gitques avatar Oct 04 '22 19:10 gitques

@takdeveloper any idea?

gitques avatar Oct 04 '22 20:10 gitques

@gitques I only build plugins using the SDK and use the atak.apk that is provided with the SDK so I do not try and build ATAK from scratch.

rob-baily avatar Oct 04 '22 20:10 rob-baily

@rob-baily OK. Let me try build helloworld plugin in SDK 4.2.. Thank you very much. BTW, I logged in tak.gov, but I cannot find the link for downloading SDK 4.7. Could you please explain which tab in Confluence or tak.gov has the SDK?

gitques avatar Oct 04 '22 20:10 gitques

@gitques Once you are logged in it is under Products -> ATAK-CIV

rob-baily avatar Oct 04 '22 22:10 rob-baily

~~@rob-baily I saw the files which are all .apk files..~~ ~~But I do not know how to utilize the atak .apk file.~~ ~~Assume that I have helloworld plugin file from https://github.com/deptofdefense/AndroidTacticalAssaultKit-CIV/releases/tag/4.5.1.13, then should I replace atak.apk file in the atak-civ-sdk-4.5.1.13>atak-civ with the atak.apk file from tak.gov website?~~

~~After that, what should I change in the helloworld plugin files?~~

Finally, I figured out!! Now I understand what you said. Thank you.

gitques avatar Oct 05 '22 18:10 gitques