As the note of your project's build.gradle file suggests: // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files Remove the 2 compile statements in that gradle file: compile 'com.android.support:appcompat-v7:20.+' compile 'com.google.android.gms:play-services:6.5.+' And then make your other (module's) build.gradle dependencies look like this: dependencies { compile fileTree ( dir : 'libs' , include : [ '*.jar' ]) compile 'com.android.support:appcompat-v7:21.0.3' compile 'com.google.android.gms:play-services:6.5.+' }
# Note that NDK_MODULE_PATH must contain the patchfield parent directory. The # makefile in PcmSample implicitly takes care of this. LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := pcmsource LOCAL_LDLIBS := -llog LOCAL_SRC_FILES := pcmsource.c LOCAL_STATIC_LIBRARIES := audiomodule include $(BUILD_SHARED_LIBRARY) $(call import-add-path, C:\Users\310151586\Downloads\AudioEnginePitchTest-master\AudioEnginePitchTest-master\PcmSample1\patchfield) $(call import-module,src\main\jni)
You can compile and run java module as stand alone java project in Android Studio IDE. Follow the below steps Open your Android project in Android Studio. If you do not have one, create one. Click File > New Module . Select Java Library and click Next . Fill in the package name, etc and click Finish . You should now see a Java module inside your Android project. Add your code to the Java module you’ve just created. Click on the drop down to the left of the run button. Click Edit Configurations… In the new window, click on the plus sign at the top left of the window and select Application A new application configuration should appear, enter in the details such as your main class and classpath of your module.
Comments
Post a Comment