How can i make whole android project as jar file -
here want make whole android project jar file further used in unity. android project http://www.truiton.com/2015/05/capture-record-android-screen-using-mediaprojection-apis/ .
http://answers.unity3d.com/questions/330809/integration-of-jar-file-using-jni.html
and main things how can make whole project jar file.
// how can package jni; public class testclass { private string a; public testclass() { a="hi all"; } public string func() { return a; } }
if want make whole android project jar file, think need aar file, contain build files (the java files , res files),
you can choose "android library" type in file > new module create new android library.
if library set android library (i.e. uses apply plugin: 'com.android.library'
statement in build.gradle file), output .aar when it's built. show in build/outputs/aar/ directory in module's directory.
Comments
Post a Comment