android - AndroidRuntime: FATAL EXCEPTION: couldn't find "libgnustl_shared.so" -
i have made research regarding question no answer helped. new android please ask more sources , info publish. have migrated our company app eclipse android studio still fatal:
androidruntime: fatal exception: main process: com.streamunlimited.stream700, pid: 6297 java.lang.unsatisfiedlinkerror: dalvik.system.pathclassloader[dexpathlist[[zip file "/data/app/com.streamunlimited.stream700-2/base.apk"],nativelibrarydirectories=[/data/app/com.streamunlimited.stream700-2/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libgnustl_shared.so" @ java.lang.runtime.loadlibrary(runtime.java:367) @ java.lang.system.loadlibrary(system.java:1076) @ com.streamunlimited.stream700.deviceoverviewactivity.<clinit>(deviceoverviewactivity.java:86) @ java.lang.class.newinstance(native method) @ android.app.instrumentation.newactivity(instrumentation.java:1068) @ android.app.activitythread.performlaunchactivity(activitythread.java:2365) @ android.app.activitythread.handlelaunchactivity(activitythread.java:2524) @ android.app.activitythread.access$900(activitythread.java:154) @ android.app.activitythread$h.handlemessage(activitythread.java:1391) @ android.os.handler.dispatchmessage(handler.java:102) @ android.os.looper.loop(looper.java:224) @ android.app.activitythread.main(activitythread.java:5526) @ java.lang.reflect.method.invoke(native method) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:726) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:616)
here build.gradle file:
buildscript { repositories { mavencentral() } dependencies { classpath 'com.android.tools.build:gradle:1.3.0' } } apply plugin: 'com.android.application' dependencies { compile filetree(include: '*.jar', dir: 'libs') } android { compilesdkversion 16 buildtoolsversion "23.0.3" compileoptions { sourcecompatibility javaversion.version_1_7 targetcompatibility javaversion.version_1_7 } sourcesets { main { manifest.srcfile 'androidmanifest.xml' java.srcdirs = ['src'] resources.srcdirs = ['src'] aidl.srcdirs = ['src'] renderscript.srcdirs = ['src'] res.srcdirs = ['res'] assets.srcdirs = ['assets'] } // move tests tests/java, tests/res, etc... instrumenttest.setroot('tests') // move build types build-types/<type> // instance, build-types/debug/java, build-types/debug/androidmanifest.xml, ... // moves them out of them default location under src/<type>/... // conflict src/ being used main source set. // adding new build types or product flavors should accompanied // similar customization. debug.setroot('build-types/debug') release.setroot('build-types/release') } }
application.mk:
app_optim := debug # release app_platform := android-8 app_stl := gnustl_static app_cppflags += -frtti app_cppflags += -fexceptions app_cppflags += -dandroid
android.mk:
local_path := $(call my-dir) include $(clear_vars) # additional include directories local_c_includes += /opt/sca-android-debug/include \ ../../../lib/remotebrowser/ \ ../../../lib/netapi/ \ ../../../lib/netapi/core \ ../../../lib/netapi/client \ ../../../lib/netapi/interface \ ../../../lib/netapi/server \ ../../../lib/stream800api/ \ ../../../lib/stream800api/src \ ../../../lib/stream800api/lib/picojson \ ../../../lib/stream800api/src/library \ # compiler flags #local_cflags += -dpoco_android -dpoco_no_fpenvironment -dpoco_no_wstring -dpoco_no_sharedmemory local_cppflags += -g -o0 # linker flags local_ldlibs += -l/opt/sca-android-debug/lib -llog -lpoconetd -lpocodatad -lpocoutild -lpocoxmld -lpocofoundationd # create library local_module := remoteapi # files compile local_src_files := remoteapi.cpp remote_browser := \ ../../../../lib/remotebrowser/remotebrowser.cpp \ ../../../../lib/remotebrowser/netapiremotebrowser.cpp \ ../../../../lib/remotebrowser/remotebrowser_wrap.cxx \ netapi_client := \ ../../../../lib/netapi/client/netapi_client.cpp \ ../../../../lib/netapi/client/netapi_event_handlers.cpp \ ../../../../lib/netapi/client/netapi_tcp_client.cpp netapi_core := \ ../../../../lib/netapi/core/netapi_commands.cpp \ ../../../../lib/netapi/core/netapi_connection.cpp \ ../../../../lib/netapi/core/netapi_core.cpp \ ../../../../lib/netapi/core/netapi_data.cpp \ ../../../../lib/netapi/core/netapi_events.cpp \ ../../../../lib/netapi/core/netapi_init.cpp \ ../../../../lib/netapi/core/netapi_module.cpp \ ../../../../lib/netapi/core/netapi_module_basic.cpp \ ../../../../lib/netapi/core/netapi_module_core.cpp \ ../../../../lib/netapi/core/netapi_module_debug.cpp \ ../../../../lib/netapi/core/netapi_protocol_xml.cpp \ ../../../../lib/netapi/core/netapi_tcp_transport.cpp netapi_interface := \ ../../../../lib/netapi/interface/netapi_controller_interface.cpp \ ../../../../lib/netapi/interface/netapi_ui_interface.cpp \ netapi_server := \ ../../../../lib/netapi/server/netapi_server.cpp \ ../../../../lib/netapi/server/netapi_tcp_server.cpp \ ../../../../lib/netapi/server/netapi_test_server.cpp \ netapi_prefix := \ ../../../../lib/netapi/prefix.cpp stream800api_lib := \ ../../../../lib/stream800api/src/library/commands.cpp \ ../../../../lib/stream800api/src/library/controller.cpp \ ../../../../lib/stream800api/src/library/eventhandler.cpp \ ../../../../lib/stream800api/src/library/eventpoller.cpp \ ../../../../lib/stream800api/src/library/helpers.cpp \ ../../../../lib/stream800api/src/library/httptransport.cpp \ ../../../../lib/stream800api/src/library/streamapi.cpp \ local_src_files += $(remote_browser) local_src_files += $(netapi_client) local_src_files += $(netapi_core) local_src_files += $(netapi_interface) local_src_files += $(netapi_prefix) local_src_files += $(netapi_server) local_src_files += $(stream800api_lib) # netapi_files := $(wildcard $(local_path)../../../../lib/netapi/*.cpp) # netapi_files := $(my_files:$(local_path)/%=%) # local_src_files += $(netapi_files) local_whole_static_libraries := libgnustl_shared include $(build_shared_library)
Comments
Post a Comment