Skip to content

Commit

Permalink
修改gitbook代码高亮插件导致同步失败的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
luffycheung committed Dec 21, 2016
1 parent a169152 commit dc04b60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapter4/experiment01/ndk_hello_world.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Studio、创建或配置项目以支持 Android 上的原生代码,以及构
**图 3.**创建本地方法。
跳转到`native-lib.cpp`会自动生成对应的底层方法。

```cpp
```c
JNIEXPORT jstring JNICALL
Java_cbt_edu_iot_ndksample_MainActivity_stringFromJNI2(JNIEnv *env, jobject instance) {

Expand All @@ -150,7 +150,7 @@ Java_cbt_edu_iot_ndksample_MainActivity_stringFromJNI2(JNIEnv *env, jobject inst
```
参考之前的方法将错误修复。
```cpp
```c
extern "C"
JNIEXPORT jstring JNICALL
Java_cbt_edu_iot_ndksample_MainActivity_stringFromJNI2(JNIEnv *env, jobject instance) {
Expand Down

0 comments on commit dc04b60

Please sign in to comment.