Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

输出log到文件中时出现java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[] couldn't find "liblog4a-lib.so" #60

Open
LiJiang2016 opened this issue Jun 16, 2019 · 3 comments

Comments

@LiJiang2016
Copy link

image
下面是我调用的写入代码

if (context != null) {
     String LOG_PATH = context.getFilesDir() +
       "/" + context.getPackageName() +
       "/logs/";
     Logger.d("LOG_PATH", LOG_PATH);
     try {
       LogUtils.getLog2FileConfig()
         .configLog2FileEnable(true)
         .configLog2FilePath(LOG_PATH)
         .configLog2FileNameFormat("%d{yyyyMMdd}.txt")
         .configLogFileEngine(new LogFileEngineFactory(context));
     } catch (Exception e) {
       e.printStackTrace();
       Logger.e("Logger",e.getMessage());
     }
   }
@JianJunYU
Copy link

同问

@pengwei1024
Copy link
Owner

这个先检查下是不是有部分so不存在哈,logUtil只放了 armabi、armabi-v7等4个,第二原因是 系统没有成功加载 so,这个做不到完全修复,建议采用relinker 来做一些重试,应该可以尽量减少 这个错误

@dingpengqiang
Copy link

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/apkfuns/logutils/LogUtils;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants