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

Vitamio.isInitialized()方法中file.exists()返回false。 #479

Open
MrHerry opened this issue Dec 25, 2017 · 1 comment
Open

Vitamio.isInitialized()方法中file.exists()返回false。 #479

MrHerry opened this issue Dec 25, 2017 · 1 comment

Comments

@MrHerry
Copy link

MrHerry commented Dec 25, 2017

public static boolean isInitialized(Context ctx) {
vitamioPackage = ctx.getPackageName();
vitamioLibraryPath = ContextUtils.getDataDir(ctx) + "libs/";
File dir = new File(getLibraryPath());
boolean one = dir.exists();
boolean two = dir.isDirectory();
}
上面的方法是Vitamio.java里面的方法。方法中one和two都返回了false。其中getLibraryPath()方法的值是:/data/user/0/com.avie.aviationedu/libs/;dird的值也是/data/user/0/com.avie.aviationedu/libs;求各位大声帮忙解答,在下感激涕淋!!!

@tang85718
Copy link

我也遇到这个问题,球解

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

2 participants