Add JAR to Visual Studio 2015 Android Ant Java project

梦想的初衷 提交于 2019-12-24 00:35:50

问题


I used the Visual C++/Cross Platform/Android/Basic Application (Android, Ant) template to create a project in Visual Studio 2015.

I want to add a .jar file to the project and for the life of me cannot find any documentation on how to do this. I copied the .jar to the android /libs folder, but it is not finding it on build.


回答1:


I ran into this same issue when attempting to add fmod to an android project in Visual Studio 2015.

What ended up working for me was creating a "libs" folder in the same directory as my "src" and "res" folders, placing the .jar in there, and including that in my Android project (marking it as "Content" in the Property Pages in Visual Studio).



来源:https://stackoverflow.com/questions/37401460/add-jar-to-visual-studio-2015-android-ant-java-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!