Open ctoabidmaqbool opened 3 months ago
Resolution:
Modify gradle/native-build.gradle
line no 217 - 225:
import org.apache.tools.ant.taskdefs.condition.Os // line no. 1
// build aar
def gradlewFile = file("$tempDir/gradlew")
if (Os.isFamily(Os.FAMILY_UNIX)) {
exec {
commandLine 'dos2unix', gradlewFile.getAbsolutePath()
}
}
def aarArgs = ["-p", file("$tempDir/library").getAbsolutePath(), "assembleDebug"].flatten()
exec {
environment ANDROID_HOME: sdk, JAVA_HOME: JAVAHOME
executable gradlewFile.getAbsolutePath()
args aarArgs
}
Moreover if you want to run gradlew using linux, which was checkout using window style e.g. TortiseGit:
sudo apt-get install dos2unix
dos2unix gradlew
Steps to Reproduce the issue,
wsl
command)./gradlew publishToMavenLocal