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

java.lang.IllegalStateException: setLevel cannot be called after setInput #1

Open
lchad opened this issue Jun 26, 2018 · 1 comment

Comments

@lchad
Copy link

lchad commented Jun 26, 2018

findViewById(R.id.archive_diff).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                new Thread(new Runnable() {
                    @Override
                    public void run() {
                        File oldFile = new File(Environment.getExternalStorageDirectory() + File.separator + "debug-rack-camera-36.apk");
                        File newFile = new File(Environment.getExternalStorageDirectory() + File.separator + "debug-rack-camera-37.apk");
                        File diffFile = new File(Environment.getExternalStorageDirectory() + File.separator + "archive-patch.diff");
                        Generator generator = CoreGenerator.getInstance().getGenerator(CoreGeneratorType.ARCHIVE);
                        try {
                            generator.generate(oldFile, newFile, diffFile);
                        } catch (GeneratorException e) {
                            e.printStackTrace();
                            Log.e("####", e.getMessage());
                        }
                        Log.e("####", "finish");
                    }
                }).start();
            }
        });
@ZhoujunyuJuly
Copy link

+1

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