小编use*_*770的帖子

尝试ndk构建时缺少分隔符

为什么我得到一个JNI/Android.mk:9:*缺少分隔符.停止.

每当我尝试ndk构建时出错?我的代码如下

LOCAL_SRC_FILES :=  \
gnutls-3.0.12/lib/debug.c \
gnutls-3.0.12/lib/gnutls_pcert.c \ 
gnutls-3.0.12/lib/pkcs11_secret.c \
    gnutls-3.0.12/lib/gnutls_kx.c \
Run Code Online (Sandbox Code Playgroud)

这是一个语法错误还是我错误地分离我的.c文件?

android android-ndk

2
推荐指数
1
解决办法
6146
查看次数

以编程方式打开pdf文件进入菜单页面?

为什么每次我尝试使用以下代码在我的SDCARD中打开pdf文件时,它实际上并不打开pdf文件本身,而是进入adobe reader菜单?我的代码有什么问题吗?

Intent intent = new Intent();
    File pdfFile = new File("/sdcard/sample.pdf");
    Uri path = Uri.fromFile(pdfFile);
    intent.setAction(Intent.ACTION_VIEW); 
    intent.setData(path);
    intent.setType("application/pdf");
    intent.setPackage("com.adobe.reader");
    startActivity(intent);
Run Code Online (Sandbox Code Playgroud)

pdf android android-intent

1
推荐指数
1
解决办法
1万
查看次数

在Android.mk中将多个.c文件链接在一起

如何在Android.mk文件中链接或"使用"多个.c文件?

它目前看起来像这样

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE    := ndk_demo
LOCAL_SRC_FILES := gnutls-3.0.12/lib/debug.c
include $(BUILD_SHARED_LIBRARY)
Run Code Online (Sandbox Code Playgroud)

但是,当我尝试和ndk构建它时,它总是抛出这个错误

Compile thumb  : ndk_demo <= debug.c
In file included from jni/gnutls-3.0.12/lib/debug.c:25:
jni/gnutls-3.0.12/lib/gnutls_int.h:52:43: error: u64.h: No such file or directory
jni/gnutls-3.0.12/lib/gnutls_int.h:57:24: error: gl/memxor.h: No such file or directory
jni/gnutls-3.0.12/lib/gnutls_int.h:84:27: error: gnutls/gnutls.h: No such file or directory
jni/gnutls-3.0.12/lib/gnutls_int.h:85:29: error: gnutls/abstract.h: No such file or directory
jni/gnutls-3.0.12/lib/gnutls_int.h:86:20: error: system.h: No such file or directory
jni/gnutls-3.0.12/lib/gnutls_int.h:202:24: error: gnutls_mem.h: No such file or directory
jni/gnutls-3.0.12/lib/gnutls_int.h:219:24: error: gnutls_mpi.h: No …
Run Code Online (Sandbox Code Playgroud)

android android-ndk

0
推荐指数
1
解决办法
2735
查看次数

标签 统计

android ×3

android-ndk ×2

android-intent ×1

pdf ×1