eltorio / RtkGps

Playing with rtklib on android
Other
203 stars 99 forks source link

cannot find jniDir() in android studio #13

Closed caifazhou closed 5 years ago

caifazhou commented 7 years ago

When I try to use Android studio (2.2.3) to build this version of RtkGps, I got this error information:

Error:(46, 0) Could not find method jniDir() for arguments [/Users///RtkGps/libs] on task ':packageDebug' of type com.android.build.gradle.tasks.PackageApplication. Open File

I am totally new to jni, i cannot figure out what the problem is?Can you help me to solve it? Thanks

***: I replace my personal information with this.

sunshine1995tangyao commented 6 years ago

I have the same problem,and I try to use tasks.withType(com.android.build.gradle.tasks.PackageApplication) { pkgTask -> pkgTask.jniFolders = new HashSet() pkgTask.jniFolders.add(new File(buildDir, 'libs')) } to replace it ,but still failed, how do you solve it finally?

eltorio commented 5 years ago

Current build env compiles correctly