title: Error:This class should provide a default constructor (a public constructor with no arguments) [Instantiatable] in Android
body: <p>I am generating the file apk with Generated Signed APK in Android Studio, but I have this error:</p>
  
  <blockquote>
    <p>Error:Error: This class should provide a default constructor (a public constructor with no arguments) (com.actua.actuaconsultores.actuamindfulness.GridImagenAdaptar) [Instantiatable]</p>
  </blockquote>
  
  <p>my class is:</p>
  
  <pre><code>public class GridImagenAdaptar extends BaseAdapter {
  
      private final Context mContext;
      private final ArrayList&lt;ModelImage&gt; mGridItems;
  
      public GridImagenAdaptar(Context mContext, ArrayList&lt;ModelImage&gt; mGridItems) {
          this.mContext = mContext;
          this.mGridItems = mGridItems;
      }
  
      public int getCount() {
          return mGridItems.size();
      }
  
      public Object getItem(int position) {
          return mGridItems.get(position);
      }
  
      public long getItemId(int position) {
          return position;
      }
  
  
      public View getView(int position, View convertView, ViewGroup parent)
      {
          if( convertView == null)
          {   // If ReusedView doesn't exist
              convertView = inflatedViewWithContextInParentView(R.layout.activity_grid_imagen_adaptar, mContext, parent);
  
              convertView.setTag("HomeMenuCell"); // Reuse Identifier
          }
  
          fillViewWithItemAtIndex(convertView, position);
  
          return convertView;
      }
  
      private View inflatedViewWithContextInParentView(int id, Context context, ViewGroup parentView)
      {
          LayoutInflater inflater = (LayoutInflater) context.getSystemService(Service.LAYOUT_INFLATER_SERVICE);
          View inflatedView = inflater.inflate(id, parentView, false);
          return inflatedView;
      }
  
      private void fillViewWithItemAtIndex(View reusedView, int index)
      {
          ModelImage item = mGridItems.get(index);
          item.setId(index);
  
          TextView title = (TextView) reusedView.findViewById(R.id.title);
          title.setText(item.title);
  
          ImageView picture = (ImageView) reusedView.findViewById(R.id.image);
          int resourceID = getIDForResourceName(item.imageName);
          picture.setImageResource(resourceID);
      }
  
      private int getIDForResourceName(String name)
      {
          try {
              Class res = R.drawable.class;
              Field field = res.getField(name);
              int drawableId = field.getInt(null);
              return drawableId;
          }
          catch (Exception e) {
              Log.e("GridItemsAdapter", "Error: Couldn't get a drawable id.", e);
          }
          return -1;
      }
  }
  </code></pre>
  
  <p>What is the problem?</p>
  
  <p>Thanks</p>