android-fat-aar icon indicating copy to clipboard operation
android-fat-aar copied to clipboard

What went wrong: A problem occurred configuring project ':mylibrary'. > Could not get unknown property 'transformNative_libsWithSyncJniLibsForRelease' for project ':mylibrary' of type org.gradle.api.Project.

Open KoushikJit opened this issue 7 years ago • 11 comments

Don't know what to do.

KoushikJit avatar Apr 21 '17 08:04 KoushikJit

FAILURE: Build failed with an exception.

  • Where: Script 'https://raw.githubusercontent.com/adwiv/android-fat-aar/master/fat-aar.gradle' line: 119

  • What went wrong: A problem occurred configuring project ':mylibrary'.

Could not get unknown property 'transformNative_libsWithSyncJniLibsForRelease' for project ':mylibrary' of type org.gradle.api.Project.

KoushikJit avatar Apr 21 '17 08:04 KoushikJit

Replace it with 'transformNativeLibsWithSyncJniLibsForRelease' will fix the issue

hwdavr avatar Apr 22 '17 12:04 hwdavr

I'm sorry if it's silly but I don't know how to do that. I simply wrote 'apply from: 'https://raw.githubusercontent.com/adwiv/android-fat-aar/master/fat-aar.gradle'' in my module gradle file.

KoushikJit avatar Apr 22 '17 13:04 KoushikJit

I face this problem too

JonaNorman avatar May 16 '17 07:05 JonaNorman

Facing the same issue. Any solution??

mayankkussh avatar May 25 '17 11:05 mayankkussh

@mayankkussh As @hwdavr say, Replace it with 'transformNativeLibsWithSyncJniLibsForRelease'

JonaNorman avatar May 25 '17 11:05 JonaNorman

i same to you

LessTalk avatar Jun 03 '17 07:06 LessTalk

This fat aar script is only working for Android Studio V2.1 and before, latest version is not working any more.

hwdavr avatar Jun 03 '17 07:06 hwdavr

Is this working? I have android studio 2.3 and when used this to create a .aar file the classes.jar file is missing in the generated .aar file. However, if I dont use this, the classes.jar file is created. Any pointers to fix this?

meetakshay99 avatar Jun 12 '17 07:06 meetakshay99

@hwdavr replacing 'transformNativeLibsWithSyncJniLibsForRelease' with what?

nikgupta1231 avatar May 25 '18 07:05 nikgupta1231

@nikgupta1231 replace transformNative_libsWithSyncJniLibsForRelease with transformNativeLibsWithSyncJniLibsForRelease

hwdavr avatar May 25 '18 15:05 hwdavr