简体   繁体   中英

How do I find Android Studios application MAKE file?

I'm new to Android Studio so if anyone could tell me the STEPS how to find application Make file?

Im following the instructions on http://techdocs.zebra.com/emdk-for-android/4-0/guide/programming_practices/

Need to add below code to application make file

LOCAL_JAVA_LIBRARIES := com.symbol.emdk
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES :=  libemdk:com.symbol.emdk/com.symbol.emdk.jar

Also, I check the settings editor->Inspections and it said Missing JNI Function. Not sure if this could be related.

I'm using a sample code but I get an error. I'm assuming its because I need to add the above code to the application make file.

java.lang.ClassNotFoundException: Didn't find class "com.symbol.emdk.EMDKManager$EMDKListener" on path:

In android studio, add following code in build.gradle

dependencies {  
    compile fileTree(dir: 'libs', include: ['*.jar'], exclude: ['com.symbol.emdk.jar'])  
    compile 'com.android.support:appcompat-v7:21.0.3'  
    provided files('./libs/com.symbol.emdk.jar')  
}  

For more detail visit https://developer.zebra.com/thread/30509
In the above link clearly explained solution for eclispse and android studio both.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM