Skip to main content
added 238 characters in body
Source Link
Vilen
  • 5.1k
  • 3
  • 31
  • 40

I guess this because of redundancy, in following code first line already including your jar.

compile fileTree(dir: 'libs', include: ['*.jar']) compile files('libs/NChart3D.jar') 

try to remove compile files('libs/NChart3D.jar'), then clean project and rebuild

make sure you have following project structure, and note that your jar should go into libs folder and other lib components in jniLibs. This is for android studio 1.0

project tree

I guess this because of redundancy, in following code first line already including your jar.

compile fileTree(dir: 'libs', include: ['*.jar']) compile files('libs/NChart3D.jar') 

try to remove compile files('libs/NChart3D.jar'), then clean project and rebuild

I guess this because of redundancy, in following code first line already including your jar.

compile fileTree(dir: 'libs', include: ['*.jar']) compile files('libs/NChart3D.jar') 

try to remove compile files('libs/NChart3D.jar'), then clean project and rebuild

make sure you have following project structure, and note that your jar should go into libs folder and other lib components in jniLibs. This is for android studio 1.0

project tree

Source Link
Vilen
  • 5.1k
  • 3
  • 31
  • 40

I guess this because of redundancy, in following code first line already including your jar.

compile fileTree(dir: 'libs', include: ['*.jar']) compile files('libs/NChart3D.jar') 

try to remove compile files('libs/NChart3D.jar'), then clean project and rebuild