Posts

Showing posts from February, 2016

Are you sure your NDK_MODULE_PATH variable is properly defined ?

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

Error: NDK integration is deprecated in the current plugin. Consider trying the new experimental plugin

Here is how to solve this issue : add  gradle.properties  file to root folder of your project add  'android.useDeprecatedNdk=true'  to  gradle.properties  file Here is my gradle.properties : # Project-wide Gradle settings. # IDE (e.g. Android Studio) users: # Gradle settings configured through the IDE *will override* # any settings specified in this file. # For more details on how to configure your build environment visit # http://www.gradle.org/docs/current/userguide/build_environment.html # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. # Default value: -Xmx10248m -XX:MaxPermSize=256m # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/

Top level gradle for ndk

// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle-experimental:0.4.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() } } task clean( type : Delete) { delete rootProject.buildDir }

Error:Cause: org.gradle.api.internal.ExtensibleDynamicObject

your are correct and other things. minSdkVersion 21 targetSdkVersion 21 should be minSdkVersion.apiLevel =21 targetSdkVersion.apiLevel = 21

Reverse engineering APK

Download dex2jar tool from  dex2jar . Use the tool to convert the APK file to  JAR : $ d2j - dex2jar . sh my . apk dex2jar my . apk -> ./ my - dex2jar . jar Once the JAR file is generated, use  JD-GUI  to open the JAR file. You will see the Java files. G:\dex2jar-0.0.9.15\dex2jar-0.0.9.15>dex2jar classes.dex"

How to generate .so file in android

Windows : Change directory : JNI Root Run -> "ndk-build" TARGET_PLATFORM=android-9

SANDALWOOD

Is It legal to grow/sell Sandalwood? Does Govt Of India permit this? Sandalwood trees were the property of the government for years, but now the rule has changed. As per the Section 108 of the Karnataka Forest (Amendment) Act 2001, sandalwood tree grown in a specific land is the property of the owner of the land. Hence, anybody can grow sandalwood without any apprehensions.The government is also giving subsidy to grow sandalwood through State Medicinal Plants Authority and Horticulture Department. Can Sandalwood cultivation really fetch crores of rupees? Yes it can. Kindly find the following increase in price since 1990 till 2010. The prices mentioned below at per metric ton (mt). As per our project analysis we would be able to fetch upto 8 (mt) from each acre of cultivation Indian Sandalwood has huge demand worldwide and the supply is currently way under the demand. 100 gms of branch wood (sandalwood) costs Rs 900 (source : Mysore sandal soap, Karnataka) 5 ml of sandalwood