Open gitques opened 2 years ago
I'm having the same issue, and would love a way to fix this.
I have the same problem. I just downloaded the same build and i get that error.
I also get that error when trying to take a working build from JDK 18, Gradle 7.5.1 and Android Gradle Plugin 7.3.1 to the one supported by the TAK auto builder which uses JDK 1.8, Gradle 6.9.1 and Android Gradle Plugin 4.2.2.
Thank you for taking the time to comment @rookiebeotch . That is correct.
I solved this problem for me doing the following.
I changed the this line in build.gradle implementation 'com.google.android.material:material:1.3.0' It was i think 1.5.0 before. That was causing some errors.
I also did the keystore from the link above. If using the newer java i think the keytool uses an incompatible key store type.
https://github.com/deptofdefense/AndroidTacticalAssaultKit-CIV/issues/268#issuecomment-1307843582
Then i also had to change the following imports because that is different from the newer versions. import com.atakmap.android.mypluginname.plugin.R; that failed and had to change to this import com.atakmap.android.mypluginname.R;
hope that helps someone. i struggled a lot trying to go backwards from latest gradle/java to the older one lol
For me, the issue was in the definitions of the getValueFromPropertiesFile
and getProperty
methods in build.gradle. Scoping can get weird in build.gradle scripts. To access the functions from outside the buildscript
closure, you have to define the methods as ext
. So I changed this:
def getValueFromPropertiesFile = { propFile, key ->
to this:
ext.getValueFromPropertiesFile = { propFile, key ->
and from this:
def getProperty = { name, defValue ->
to this:
ext.getProperty = { name, defValue ->
You'll also want to make sure all of the properties for the signing key are properly defined in your local.properties file.
I downloaded
atak-civ-sdk-4.5.1.13.zip
file from https://github.com/deptofdefense/AndroidTacticalAssaultKit-CIV/releases/tag/4.5.1.13 and unzipped. After that, I didSync Project with Gradle Files
in Android Studio. This is all I did, but I have the following error which is aboutNo signature of method.....
Is there anyone who resolve this issue?Thank you.