2016-07-23 54 views

回答

1

在你的build.gradle:

dependencies { 
    // create a directory called libs in the directory where the build.gradle is 
    compile fileTree(dir: 'libs', include: '*.jar') 
} 
jar { 
    // make in the directory where the build.gradle is a native folder 
    // and put your dll's there. 
    from('native') { 
     into('org/sqlite/native') 
     } 
    } 
processResources 
    { 
    //... add this below what's already there under process resources. 
    copy { 
      from('/native') 
      into('/org/sqlite/native') 
     } 
} 

这东西组合对我的作品的sqlite的罐子和DLL的添加到我的谁拿我的饼干罐子。

+0

非常感谢,但可悲的是我已经找到了另一种方式,我有另一个程序,它运行在服务器和国防部连接到该服务器,并且服务器然后转发给通过RXTX Arduino的,我很多喜欢它,因为我可以很容易与terraria,csgo,arma,我自己的游戏,kerbal space program,war thunder等一起工作。 – Jeremiah

相关问题