Add JAR to Visual Studio 2015 Android Ant Java pro

2019-07-17 03:35发布

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条回答
啃猪蹄的小仙女
2楼-- · 2019-07-17 04:09

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).

查看更多
登录 后发表回答