我正在开发一个Android应用程序,一旦我构建它并在开始时运行它崩溃。我在这里复制 logcat错误日志。我尝试使用android-19构建它,但 v7-appcompat 开始显示有关资源的错误,实际上通过将目标更改为andrdoid-21来解决,因为我在此站点上阅读了它。我认为因为*
而发生了崩溃01-12 17:15:20.089: E/AndroidRuntime(23206): ***Caused by:
java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1306]:
170 cannot locate 'rand'...****
01-12 17:15:20.089: E/AndroidRuntime(23206): FATAL EXCEPTION: main
01-12 17:15:20.089: E/AndroidRuntime(23206): java.lang.ExceptionInInitializerError
01-12 17:15:20.089: E/AndroidRuntime(23206): at java.lang.Class.newInstanceImpl(Native Method)
01-12 17:15:20.089: E/AndroidRuntime(23206): at java.lang.Class.newInstance(Class.java:1319)
01-12 17:15:20.089: E/AndroidRuntime(23206): at android.app.Instrumentation.newActivity(Instrumentation.java:1068)
01-12 17:15:20.089: E/AndroidRuntime(23206): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2029)
01-12 17:15:20.089: E/AndroidRuntime(23206): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2139)
01-12 17:15:20.089: E/AndroidRuntime(23206): at android.app.ActivityThread.access$700(ActivityThread.java:143)
01-12 17:15:20.089: E/AndroidRuntime(23206): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1241)
01-12 17:15:20.089: E/AndroidRuntime(23206): at android.os.Handler.dispatchMessage(Handler.java:99)
01-12 17:15:20.089: E/AndroidRuntime(23206): at android.os.Looper.loop(Looper.java:137)
01-12 17:15:20.089: E/AndroidRuntime(23206): at android.app.ActivityThread.main(ActivityThread.java:4960)
01-12 17:15:20.089: E/AndroidRuntime(23206): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(23206): at java.lang.reflect.Method.invoke(Method.java:511)
01-12 17:15:20.089: E/AndroidRuntime(23206): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
01-12 17:15:20.089: E/AndroidRuntime(23206): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
01-12 17:15:20.089: E/AndroidRuntime(23206): at dalvik.system.NativeStart.main(Native Method)
01-12 17:15:20.089: E/AndroidRuntime(23206): ***Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1306]: 170 cannot locate 'rand'...***
01-12 17:15:20.089: E/AndroidRuntime(23206): at java.lang.Runtime.loadLibrary(Runtime.java:370)
01-12 17:15:20.089: E/AndroidRuntime(23206): at java.lang.System.loadLibrary(System.java:535)
01-12 17:15:20.089: E/AndroidRuntime(23206): at com.tags.lyricle.Lyricle.<clinit>(Lyricle.java:203)
01-12 17:15:20.089: E/AndroidRuntime(23206): ... 15 more
我尝试搜索任何可能正在使用rand但没有运气且没有找到reloc_library的内容的参考文件。
请帮我解决这个问题。我尝试了在相同类型的问题上发布的解决方案,但没有取得任何成功。
请告诉我,我在哪里遗漏了什么。