[Solved] IllegalArgumentException: width should be > 0?

Without any code from your end, what I can suggest is to do something like : recyclerView.post(new Runnable() { @Override public void run() { // Execute your AsyncTask here by providing Width } }); Because the problem I can guess is your RecyclerView is not properly inflated when you call the AsyncTask with width Also … Read more

[Solved] Throwing exceptions syntax java

You have two issues: 1) Your closing } for the try is inside the if. 2) You are not properly calling the constructor of IllegalArgumentException. Do `throw new IllegalArgumentException(); In the future, you should read and try to understand the compiler message. It is most likely telling you exactly what there errors are and where. … Read more