{"id":264173,"date":"2015-08-24T17:20:02","date_gmt":"2015-08-24T13:20:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=264173"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=264173","title":{"rendered":"NDK c \u043f\u043e\u043b\u043f\u0438\u043d\u043a\u0430"},"content":{"rendered":"<br \/>\n<h4>\u0412\u043c\u0435\u0441\u0442\u043e \u043f\u0440\u043e\u043b\u043e\u0433\u0430<\/h4>\n<p>  \u042f, \u043f\u043e\u0436\u0430\u043b\u0443\u0439, \u043d\u0430\u0440\u0443\u0448\u0443 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u044e \u0432\u0441\u0435\u0445 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u0438 \u043d\u0435 \u0431\u0443\u0434\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c, \u0437\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u0435\u043d NDK. \u0415\u0441\u043b\u0438 \u0432\u044b \u044d\u0442\u043e \u0447\u0438\u0442\u0430\u0435\u0442\u0435, \u0437\u043d\u0430\u0447\u0438\u0442 \u0432\u0430\u043c \u043e\u043d \u0437\u0430\u0447\u0435\u043c-\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0441\u044f. \u041d\u043e \u043e\u0434\u0438\u043d \u0438\u0437 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u0435\u0439\u0441\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u044b, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/df6\/d16\/1e4\/df6d161e47bb438c94ecf778f93d7022.png\"\/><br \/>  \u042d\u0442\u0430 \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043d\u0430\u0447\u0430\u043b\u0430\u0441\u044c \u0441 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043d\u0430 Google I\/O 2015 \u0431\u044b\u043b\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0440\u044f\u043c\u043e \u043d\u0435 \u0432\u044b\u0445\u043e\u0434\u044f \u0438\u0437 \u0441\u0442\u0443\u0434\u0438\u0438, Android-\u0441\u0442\u0443\u0434\u0438\u0438. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, Google, \u043a\u0430\u043a \u0432\u0441\u0435\u0433\u0434\u0430, \u043d\u0430\u043e\u0431\u0435\u0449\u0430\u043b \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043b \u0436\u0434\u0430\u0442\u044c, \u043f\u043e\u043a\u0430 \u043e\u043d\u0438 \u0432\u0441\u0435 \u044d\u0442\u043e \u0432\u044b\u043a\u0430\u0442\u044f\u0442 \u0434\u043b\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u043b\u044e\u0434\u0435\u0439. \u0418 \u0432\u043e\u0442 9 \u0438\u044e\u043b\u044f \u044d\u0442\u043e \u0441\u0432\u0435\u0440\u0448\u0438\u043b\u043e\u0441\u044c: \u043d\u0430 stable channel \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f <a href=\"http:\/\/tools.android.com\/tech-docs\/android-ndk-preview\">\u043a\u0443\u0441\u043e\u0447\u0435\u043a<\/a> \u0442\u043e\u0433\u043e <a href=\"http:\/\/www.youtube.com\/watch?v=f7ihSQ44WO0\">\u043f\u0438\u0440\u043e\u0433\u0430<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u043c \u043d\u0430\u043e\u0431\u0435\u0449\u0430\u043b\u0438.<\/p>\n<p>  <a name=\"habracut\"><\/a><br \/>  \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043d\u0435\u043b\u044c\u0437\u044f \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0437\u044f\u0442\u044c \u0438 \u043d\u0430\u0447\u0430\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u0442\u0430\u043a, \u043a\u0430\u043a \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/b46\/30a\/d80\/b4630ad807f641778fd4517083f32658.jpg\" alt=\"image\"\/><\/p>\n<p>  \u041d\u043e \u043c\u044b \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0431\u0443\u0434\u0435\u043c.<\/p>\n<h4>\u0413\u043e\u0442\u043e\u0432\u0438\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442<\/h4>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u043e\u0434\u043d\u043e\u0439 activity, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0443\u0436\u043d\u043e \u043a\u0438\u043d\u0443\u0442\u044c 2 TextView, EditText \u0438 Button. \u0414\u0430\u043b\u0435\u0435 \u0438\u0434\u0435\u043c \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 (\u2318;) \u0438 \u0432 SDK Location \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0443\u0442\u044c \u043a NDK. \u0415\u0441\u043b\u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u0442\u0430\u043a\u043e\u0433\u043e \u0443 \u0432\u0430\u0441 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u043e, \u0442\u043e \u0441\u0442\u0443\u0434\u0438\u044f \u043b\u044e\u0431\u0435\u0437\u043d\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442 \u0435\u0433\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c.<\/p>\n<p>  \u0421\u0430\u043c\u043e\u0435 \u0442\u0440\u0443\u0434\u043d\u043e\u0435 \u043f\u043e\u0437\u0430\u0434\u0438 \ud83d\ude09 \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441\u0431\u043e\u0440\u043a\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043f\u0430\u0435\u043c \u0432 <b>gradle\/wrapper\/gradle-wrapper.properties<\/b> \u0438 \u043c\u0435\u043d\u044f\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u0442\u0430\u043c <b>distributionUrl<\/b> \u043d\u0430 \u0442\u0430\u043a\u043e\u0439:<\/p>\n<pre><code>distributionUrl=https\\:\/\/services.gradle.org\/distributions\/gradle-2.5-all.zip <\/code><\/pre>\n<p>  <i>\u042d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u043b\u0430\u0433\u0438\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0441\u044e \u043c\u0430\u0433\u0438\u044e, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u044d\u0442\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 Gradle.<\/i><\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u044d\u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 \u043f\u043b\u0430\u0433\u0438\u043d \u043d\u0430\u0442\u044f\u043d\u0443\u0442\u044c \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442. \u0421\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u043c <b>build.gradle<\/b> \u0444\u0430\u0439\u043b\u0435. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u0435\u043d\u044f\u0435\u043c \u0438\u043c\u044f \u0438 \u0432\u0435\u0440\u0441\u0438\u044e \u043f\u043b\u0430\u0433\u0438\u043d\u0430:<\/p>\n<pre><code>classpath 'com.android.tools.build:gradle-experimental:0.2.0' <\/code><\/pre>\n<p>  \u0418 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a build \u0444\u0430\u0439\u043b\u0443 \u043c\u043e\u0434\u0443\u043b\u044f, \u0433\u0434\u0435 \u0438 \u043d\u0430\u0447\u043d\u0435\u0442\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435. \u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043d\u0430\u043c \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0444\u0430\u0439\u043b \u043a \u0442\u0430\u043a\u043e\u043c\u0443 \u0432\u0438\u0434\u0443:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">build.gradle<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>apply plugin: 'com.android.model.application' model {     android {         compileSdkVersion = 22         buildToolsVersion = &quot;22.0.1&quot;      defaultConfig.with {             applicationId = &quot;com.redmadrobot.ndkdemo&quot;             minSdkVersion.apiLevel = 15             targetSdkVersion.apiLevel = 22             versionCode = 1             versionName = &quot;1.0&quot;         }     }      \/*      * native build settings      *\/     android.ndk {         moduleName = &quot;security&quot;          cppFlags += &quot;-std=c++11&quot;         stl = &quot;stlport_static&quot;     }     android.buildTypes {         release {             minifyEnabled = false             proguardFiles += file('proguard-rules.txt')         }      }     android.productFlavors {         \/\/ for detailed abiFilter descriptions, refer to &quot;Supported ABIs&quot; @         \/\/ https:\/\/developer.android.com\/ndk\/guides\/abis.html#sa         create(&quot;arm&quot;) {             ndk.abiFilters += &quot;armeabi&quot;         }         create(&quot;arm7&quot;) {             ndk.abiFilters += &quot;armeabi-v7a&quot;         }         create(&quot;arm8&quot;) {             ndk.abiFilters += &quot;arm64-v8a&quot;         }         create(&quot;x86&quot;) {             ndk.abiFilters += &quot;x86&quot;         }         create(&quot;x86-64&quot;) {             ndk.abiFilters += &quot;x86_64&quot;         }         create(&quot;mips&quot;) {             ndk.abiFilters += &quot;mips&quot;         }         create(&quot;mips-64&quot;) {             ndk.abiFilters += &quot;mips64&quot;         }         \/\/ To include all cpu architectures, leaves abiFilters empty         create(&quot;all&quot;)     } }  dependencies {     compile fileTree(dir: 'libs', include: ['*.jar'])     compile 'com.android.support:appcompat-v7:22.2.1' } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0418 \u043e\u0431\u0435\u0449\u0430\u0435\u0442, \u0447\u0442\u043e \u0432\u0441\u0435 \u0431\u0443\u0434\u0435\u0442 \u0445\u043e\u0440\u043e\u0448\u043e. \u0412\u0440\u0435\u0442. \u041d\u0435 \u0431\u0443\u0434\u0435\u0442. \u041f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0441\u0442\u0443\u0434\u0438\u044f \u043f\u043b\u044e\u043d\u0435\u0442 \u0432 \u043d\u0430\u0441 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043d\u0435\u0432\u043d\u044f\u0442\u043d\u044b\u043c \u043b\u043e\u0433\u043e\u043c \u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u0438\u0442\u044c \u043d\u0430 \u0441\u0435\u0431\u044f \u0440\u043e\u043b\u044c \u0430\u043b\u0442\u0430\u0439\u0441\u043a\u043e\u0433\u043e \u0448\u0430\u043c\u0430\u043d\u0430. \u041f\u043e\u043a\u043e\u043f\u0430\u0432\u0448\u0438\u0441\u044c (\u043a\u0430\u043a \u0432\u043e\u0434\u0438\u0442\u0441\u044f) \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430\u0445, \u044f \u043d\u0430\u0448\u0435\u043b \u0440\u0435\u0448\u0435\u043d\u0438\u0435. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u044f\u0432\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0441\u0431\u043e\u0440\u043a\u0438, \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f Java 1.7. \u041a\u0442\u043e \u0431\u044b \u043c\u043e\u0433 \u043f\u043e\u0434\u0443\u043c\u0430\u0442\u044c\u2026 \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 build-\u0444\u0430\u0439\u043b:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 build.gradle<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>apply plugin: 'com.android.model.application' model {     android {         compileSdkVersion = 22         buildToolsVersion = &quot;22.0.1&quot;          defaultConfig.with {             applicationId = &quot;com.redmadrobot.ndkdemo&quot;             minSdkVersion.apiLevel = 15             targetSdkVersion.apiLevel = 22             versionCode = 1             versionName = &quot;1.0&quot;         }     }      \/*      * native build settings      *\/     android.ndk {         moduleName = &quot;security&quot;          cppFlags += &quot;-std=c++11&quot;         stl = &quot;stlport_static&quot;     }     android.buildTypes {         release {             minifyEnabled = false             proguardFiles += file('proguard-rules.txt')         }      }     android.productFlavors {         \/\/ for detailed abiFilter descriptions, refer to &quot;Supported ABIs&quot; @         \/\/ https:\/\/developer.android.com\/ndk\/guides\/abis.html#sa         create(&quot;arm&quot;) {             ndk.abiFilters += &quot;armeabi&quot;         }         create(&quot;arm7&quot;) {             ndk.abiFilters += &quot;armeabi-v7a&quot;         }         create(&quot;arm8&quot;) {             ndk.abiFilters += &quot;arm64-v8a&quot;         }         create(&quot;x86&quot;) {             ndk.abiFilters += &quot;x86&quot;         }         create(&quot;x86-64&quot;) {             ndk.abiFilters += &quot;x86_64&quot;         }         create(&quot;mips&quot;) {             ndk.abiFilters += &quot;mips&quot;         }         create(&quot;mips-64&quot;) {             ndk.abiFilters += &quot;mips64&quot;         }         \/\/ To include all cpu architectures, leaves abiFilters empty         create(&quot;all&quot;)     }     \/\/ Our workaround     compileOptions.with {         sourceCompatibility = JavaVersion.VERSION_1_7         targetCompatibility = JavaVersion.VERSION_1_7     } }  dependencies {     compile fileTree(dir: 'libs', include: ['*.jar'])     compile 'com.android.support:appcompat-v7:22.2.1' } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0420\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0444\u043e\u0440\u043c\u0430\u0442 \u0444\u0430\u0439\u043b\u0430 \u044f \u043d\u0435 \u0431\u0443\u0434\u0443. \u0412\u043e\u0442 \u0441\u0441\u044b\u043b\u043a\u0430 \u0434\u043b\u044f \u043f\u044b\u0442\u043b\u0438\u0432\u044b\u0445 \u0443\u043c\u043e\u0432:<a href=\"http:\/\/tools.android.com\/tech-docs\/new-build-system\/gradle-experimental\">\u0442\u044b\u043a<\/a><\/p>\n<p>  \u0412\u0441\u0435 \u043f\u0440\u0438\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u044b \u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041f\u0440\u043e\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0435 \u0432\u044b\u0448\u0435 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c <i>Hello world<\/i> \u0431\u044b\u043b\u043e \u0431\u044b \u043f\u043e \u043c\u0435\u043d\u044c\u0448\u0435\u0439 \u043c\u0435\u0440\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043a\u043e\u0435-\u0447\u0442\u043e \u043f\u043e\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435.<\/p>\n<h4>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438<\/h4>\n<p>  \u041a\u0430\u043a \u0438 \u043e\u0431\u0435\u0449\u0430\u043b, \u043c\u044b \u0437\u0430\u0442\u0440\u043e\u043d\u0435\u043c \u043e\u0434\u0438\u043d \u0438\u0437 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043a\u0435\u0439\u0441\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0432 Android-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445. \u042f \u0433\u043e\u0432\u043e\u0440\u044e \u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438. \u0427\u0430\u0441\u0442\u043e \u0431\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u043a\u0440\u044b\u0442\u044c \u043e\u0442 \u043f\u043e\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u0433\u043b\u0430\u0437 \u043a\u0430\u043a\u0443\u044e-\u0442\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u0443\u0442\u0435\u043c \u0435\u0435 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0418 \u0442\u0443\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0440\u0435\u0437\u043e\u043d\u043d\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441: \u043a\u0430\u043a \u0436\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u043a\u043b\u044e\u0447\u0435\u0439 \u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f? \u0412\u0435\u0434\u044c \u043b\u044e\u0431\u043e\u0439 \u0448\u043a\u043e\u043b\u044c\u043d\u0438\u043a \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e\u0447\u0442\u0438 \u0442\u043e\u0447\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0443\u0437\u043d\u0430\u0442\u044c \u0432\u0441\u0435 \u044f\u0432\u043a\u0438 \u0438 \u043f\u0430\u0440\u043e\u043b\u0438!<\/p>\n<p>  \u0414\u0430, \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0430\u043a. \u0418 \u0442\u0443\u0442 \u043d\u0430\u043c \u043d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438. \u0412\u0441\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b, \u043a\u043b\u044e\u0447\u0438 \u0438 \u0442\u043e\u043c\u0443 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0432\u0435\u0449\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c \u0433\u043b\u0443\u0431\u043e\u043a\u043e \u0432 \u044d\u0442\u0438\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u0445, \u0430 \u043d\u0430\u0440\u0443\u0436\u0443 \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438\u0437 \u043f\u0430\u0440\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0439 encrypt\/decrypt. \u0414\u0430, \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f, \u043d\u043e \u0443\u0436\u0435 \u043d\u0435 \u043a\u0435\u043c \u043f\u043e\u043f\u0430\u043b\u043e. \u0427\u0435\u043b\u043e\u0432\u0435\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043c\u043e\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043b\u0435\u0437\u0442\u044c \u0432 \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u0434\u0440\u0443\u0433\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f. \u0418 \u0442\u0430\u043a \u2014 \u0440\u0435\u0448\u0435\u043d\u043e! \u0411\u0443\u0434\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u044e \u041e\u0427\u0415\u041d\u042c \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u044b\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0438\u0445 \u0432 production.<\/p>\n<pre><code class=\"java\">public class MainActivity extends AppCompatActivity {      static {         System.loadLibrary(&quot;security&quot;);     }      public native String encrypt(String plainText);     public native String decrypt(String ciphertext); <\/code><\/pre>\n<p>  \u0422\u0443\u0442 \u043c\u044b \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0438 \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c 2 \u043c\u0435\u0442\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438\/\u0434\u0435\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0438\u043c\u0435\u043d\u0430 \u044d\u0442\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0441\u0442\u0443\u0434\u0438\u044f \u043d\u0430\u043c \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u0438\u0442 \u043a\u0440\u0430\u0441\u043d\u044b\u043c \u0438 \u0441\u043a\u0430\u0436\u0435\u0442 <b>Cannot resolve corresponding JNI function&#8230;<\/b>, \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u044b \u0435\u0449\u0435 \u0438\u0445 \u043d\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438. \u0418 \u0442\u0443\u0442 \u0432 \u0438\u0433\u0440\u0443 \u0432\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0432\u0441\u044f \u043f\u0440\u0435\u043b\u0435\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u0433\u043e\u0432\u043e\u0440\u0438\u043b \u0432 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043a\u0443\u0440\u0441\u043e\u0440 \u043d\u0430 \u0438\u043c\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 encrypt), \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Alt+Enter \u0438 \u043d\u0430\u043c \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0430\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e. \u041b\u044e\u0431\u0435\u0437\u043d\u043e \u0441\u043e\u0433\u043b\u0430\u0448\u0430\u0435\u043c\u0441\u044f \u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c \u043f\u043e\u0438\u0441\u0442\u0438\u043d\u0435 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u043e! \u0423 \u043d\u0430\u0441 \u0441\u043e\u0437\u0434\u0430\u043b\u0441\u044f \u043a\u0430\u0442\u0430\u043b\u043e\u0433 <b>jni<\/b>, \u0430 \u0432 \u043d\u0435\u043c \u0444\u0430\u0439\u043b\u0438\u043a <b>security.c<\/b> \u0442\u0430\u043a\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435\u043c:<\/p>\n<pre><code>#include &lt;jni.h&gt;  JNIEXPORT jstring JNICALL Java_ru_freedomlogic_ndktester_MainActivity_encrypt(JNIEnv *env, jobject instance,                                                     jstring plainText_) {     const char *plainText = (*env)-&gt;GetStringUTFChars(env, plainText_, 0);      \/\/ TODO      (*env)-&gt;ReleaseStringUTFChars(env, plainText_, plainText);      return (*env)-&gt;NewStringUTF(env, returnValue); } <\/code><\/pre>\n<p>  \u0414\u0430 \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u0430\u043a\u0430\u044f-\u0442\u043e \u0434\u043e\u0431\u0440\u0430\u044f \u043c\u0430\u0433\u0438\u044f!!! \u0412\u0441\u0435 \u043a\u0440\u0443\u0442\u043e, \u043d\u043e \u0435\u0441\u0442\u044c \u043d\u044e\u0430\u043d\u0441. \u041f\u043e\u0447\u0435\u043c\u0443 \u0421? \u042f \u0445\u043e\u0447\u0443 \u0421++! \u041a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0441\u044f <b>cpp<\/b> \u0444\u0430\u0439\u043b, \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0448\u0435\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b. \u041c\u0430\u0442\u0435\u0440\u044b\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u0441\u0435\u0439\u0447\u0430\u0441 \u0443\u0445\u043c\u044b\u043b\u044c\u043d\u0435\u0442\u0441\u044f \u043c\u043e\u0435\u0439 \u043d\u0430\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0430\u0432. \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u0440\u0430\u0437\u0443 \u043d\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0434\u043e\u0441\u0442\u0430\u0432\u0430\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043b\u044e\u0431\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/693\/63a\/e6a\/69363ae6aad74096bd3aa698b84aa0d4.jpg\"\/><\/p>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u043a\u0430\u043c\u043b\u0430\u043d\u0438\u044f, \u0437\u0430\u0442\u0440\u043e\u043d\u0443\u0432\u0448\u0435\u0433\u043e \u0432\u0435\u0440\u0445\u043d\u0438\u0439 \u0438 \u043d\u0438\u0436\u043d\u0438\u0439 \u043c\u0438\u0440\u044b \u0441\u0442\u0430\u043b \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0440\u0438\u0442\u0443\u0430\u043b \u043f\u0440\u0438\u0445\u043e\u0434\u0430 \u043a \u0421++  <\/p>\n<ul>\n<li>Clean project<\/li>\n<li>\u0418\u0437\u043c\u0435\u043d\u0438\u0438\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430<\/li>\n<li>Resync build.gralde<\/li>\n<li>\u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0438\u0435\u0441\u044f \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 .cpp \u0444\u0430\u0439\u043b\u0435<\/li>\n<li>\u0421\u0434\u0435\u043b\u0430\u0442\u044c make project<\/li>\n<li>\u041d\u0430\u0441\u043b\u0430\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u0421++ \u043a\u043e\u0434\u0430<\/li>\n<\/ul>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u043a\u043e\u0434 \u043d\u0430\u0448\u0435\u0439 \u00ab\u0441\u0443\u043f\u0435\u0440\u043a\u0440\u0438\u043f\u0442\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u044b\u00bb.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">security.cpp<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">#include &lt;jni.h&gt; #include &lt;algorithm&gt;  #include &quot;base64.h&quot;  using namespace std;  unsigned char key[] = {4, 2, 9, 4, 9, 6, 7, 2, 9, 5};   string applyXor(string sequence) {     int maxIndex = sizeof(key) - 1;      string result = sequence;     size_t sequenceSize = sequence.size();      int keyIndex = 0;      for (int i = 0; i &lt; sequenceSize; i++) {         if (keyIndex &gt; maxIndex)             keyIndex = 0;          result[i] = sequence[i] ^ key[keyIndex++];     }      return result; }  extern &quot;C&quot; {  JNIEXPORT jstring JNICALL Java_com_redmadrobot_ndkdemo_MainActivity_encrypt(JNIEnv *env, jobject instance,                                                   jstring plainText_) {     const char *plainText = env-&gt;GetStringUTFChars(plainText_, 0);      string sequence = applyXor(plainText);     size_t sequenceSize = sequence.size();      reverse(sequence.begin(), sequence.end());      int code = 0;      for (unsigned long i = 0; i &lt; sequenceSize; i++) {         code = sequence[i] + 5;         sequence[i] = (char) code;     }      env-&gt;ReleaseStringUTFChars(plainText_, plainText);      return env-&gt;NewStringUTF(base64::encode(sequence).c_str()); }  JNIEXPORT jstring JNICALL Java_com_redmadrobot_ndkdemo_MainActivity_decrypt(JNIEnv *env, jobject instance,                                                   jstring ciphertext_) {     const char *ciphertext = env-&gt;GetStringUTFChars(ciphertext_, 0);      string sequence =  base64::decode(ciphertext);     size_t sequenceSize = sequence.size();      int code;     for (int i = 0; i &lt; sequenceSize; i++) {         code = sequence[i] - 5;         sequence[i] = (char) code;     }      reverse(sequence.begin(), sequence.end());      env-&gt;ReleaseStringUTFChars(ciphertext_, ciphertext);      return env-&gt;NewStringUTF(applyXor(sequence).c_str()); } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0442\u044c \u0432\u0441\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0435\u0435 \u044f \u043d\u0435 \u0432\u0438\u0436\u0443 \u0441\u043c\u044b\u0441\u043b\u0430, \u043d\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0439 \u0434\u0430\u043c. \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445 <b>extern \u00abC\u00bb{&#8230;}<\/b>. \u0415\u0441\u043b\u0438 \u043d\u0435 \u043e\u0431\u0435\u0440\u043d\u0443\u0442\u044c \u0438\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u0442\u043e \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0435\u0442 \u0438\u043c\u0435\u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0438 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0432\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0443\u043f\u0430\u0434\u0435\u0442 \u0432 \u0440\u0430\u043d\u0442\u0430\u0439\u043c\u0435, \u043e\u0431\u0440\u0430\u0442\u0438\u0432\u0448\u0438\u0441\u044c \u043a \u043d\u0435\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c\u0443 (\u043a \u0442\u043e\u043c\u0443 \u043c\u043e\u043c\u0435\u043d\u0442\u0443) \u0438\u043c\u0435\u043d\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 <a href=\"https:\/\/isocpp.org\/wiki\/faq\/mixing-c-and-cpp\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u0412\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u0441\u0430\u0434\u0430 \u043f\u043e\u0434\u0436\u0438\u0434\u0430\u0435\u0442 \u043d\u0430\u0441 \u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438 GetStringUTFChars \u0438 NewStringUTF. \u041e\u043d\u0438 \u043e\u0447\u0435\u043d\u044c \u043f\u043b\u043e\u0445\u043e \u043f\u0435\u0440\u0435\u0432\u0430\u0440\u0438\u0432\u0430\u044e\u0442 \u0442\u0443 \u043a\u0430\u0448\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0447\u0442\u043e \u043e\u043f\u044f\u0442\u044c \u0436\u0435 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u043f\u0430\u0434\u0435\u043d\u0438\u044f\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 <a href=\"https:\/\/code.google.com\/p\/android\/issues\/detail?id=25386\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u044d\u0442\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 \u0441\u0432\u043e\u0435\u043c \u043a\u043e\u0434\u0435.<\/p>\n<pre><code>    @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);          final EditText inputText = (EditText) findViewById(R.id.input_text);         final Button encryptButton = (Button) findViewById(R.id.encrypt_button);         final TextView cipherText = (TextView) findViewById(R.id.cipher_text);         final TextView plainText = (TextView) findViewById(R.id.plain_text);          encryptButton.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(final View v) {                 String cipher = encrypt(inputText.getText().toString());                  cipherText.setText(cipher);                 plainText.setText(decrypt(cipher));             }         });     } <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c, \u0438 \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0418\u043b\u0438 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u043c \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043a\u0430 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0442\u043e\u0440\u043c\u043e\u0437\u043d\u043e\u0439, \u043d\u043e \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d \u0432 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0438 \u044d\u0442\u043e \u0433\u043b\u0430\u0432\u043d\u043e\u0435. \u0427\u0442\u043e\u0431\u044b \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043a\u043e\u0434, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e <b>Android Native<\/b>, \u0440\u0430\u0441\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u043e\u0447\u043a\u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430 \u043d\u0430\u0441\u043b\u0430\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u0443\u0434\u043e\u0431\u043d\u043e\u0439 \u043e\u0442\u043b\u0430\u0434\u043a\u043e\u0439.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/832\/b4d\/996\/832b4d996fcc470587ef8524df27f6c4.png\"\/><\/p>\n<h4>\u041f\u043e\u0434\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0438\u0442\u043e\u0433\u043e\u0432<\/h4>\n<p>  \u0420\u0435\u0431\u044f\u0442\u0430 \u0438\u0437 Google \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0434\u0430\u0442\u044c \u043d\u0430\u043c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u043e\u043d \u0435\u0449\u0435 \u043d\u0435 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0435\u043d \u0438 \u043f\u043e\u0440\u043e\u0439 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0441\u0442\u0443\u0447\u0430\u0442\u044c \u0432 \u0431\u0443\u0431\u0435\u043d, \u043d\u043e \u0432 \u0446\u0435\u043b\u043e\u043c \u044d\u0442\u043e \u0442\u0430 \u0432\u0435\u0449\u044c, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0443\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f. \u041a\u043e\u0434 \u0434\u0435\u043c\u043e-\u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0430 <a href=\"https:\/\/github.com\/Fi5t\/NDK-Demo\">GitHub<\/a>. \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 <a href=\"http:\/\/tools.android.com\/tech-docs\/android-ndk-preview\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u0411\u044b\u0441\u0442\u0440\u043e\u0439 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0432\u0441\u0435\u043c!     \t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/265117\/\"> http:\/\/habrahabr.ru\/post\/265117\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<br \/>\n<h4>\u0412\u043c\u0435\u0441\u0442\u043e \u043f\u0440\u043e\u043b\u043e\u0433\u0430<\/h4>\n<p>  \u042f, \u043f\u043e\u0436\u0430\u043b\u0443\u0439, \u043d\u0430\u0440\u0443\u0448\u0443 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u044e \u0432\u0441\u0435\u0445 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u0438 \u043d\u0435 \u0431\u0443\u0434\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c, \u0437\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u0435\u043d NDK. \u0415\u0441\u043b\u0438 \u0432\u044b \u044d\u0442\u043e \u0447\u0438\u0442\u0430\u0435\u0442\u0435, \u0437\u043d\u0430\u0447\u0438\u0442 \u0432\u0430\u043c \u043e\u043d \u0437\u0430\u0447\u0435\u043c-\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0441\u044f. \u041d\u043e \u043e\u0434\u0438\u043d \u0438\u0437 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u0435\u0439\u0441\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u044b, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/df6\/d16\/1e4\/df6d161e47bb438c94ecf778f93d7022.png\"\/><br \/>  \u042d\u0442\u0430 \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043d\u0430\u0447\u0430\u043b\u0430\u0441\u044c \u0441 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043d\u0430 Google I\/O 2015 \u0431\u044b\u043b\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0440\u044f\u043c\u043e \u043d\u0435 \u0432\u044b\u0445\u043e\u0434\u044f \u0438\u0437 \u0441\u0442\u0443\u0434\u0438\u0438, Android-\u0441\u0442\u0443\u0434\u0438\u0438. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, Google, \u043a\u0430\u043a \u0432\u0441\u0435\u0433\u0434\u0430, \u043d\u0430\u043e\u0431\u0435\u0449\u0430\u043b \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043b \u0436\u0434\u0430\u0442\u044c, \u043f\u043e\u043a\u0430 \u043e\u043d\u0438 \u0432\u0441\u0435 \u044d\u0442\u043e \u0432\u044b\u043a\u0430\u0442\u044f\u0442 \u0434\u043b\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u043b\u044e\u0434\u0435\u0439. \u0418 \u0432\u043e\u0442 9 \u0438\u044e\u043b\u044f \u044d\u0442\u043e \u0441\u0432\u0435\u0440\u0448\u0438\u043b\u043e\u0441\u044c: \u043d\u0430 stable channel \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f <a href=\"http:\/\/tools.android.com\/tech-docs\/android-ndk-preview\">\u043a\u0443\u0441\u043e\u0447\u0435\u043a<\/a> \u0442\u043e\u0433\u043e <a href=\"http:\/\/www.youtube.com\/watch?v=f7ihSQ44WO0\">\u043f\u0438\u0440\u043e\u0433\u0430<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u043c \u043d\u0430\u043e\u0431\u0435\u0449\u0430\u043b\u0438.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-264173","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/264173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=264173"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/264173\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=264173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=264173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=264173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}