title: Firebase Database Permission denied with read/write permissions set to true
body: <p>I'm having trouble writing to my Firebase database in my simple Android app. I've set my database rules to be public:</p>
  
  <pre><code>{
    "rules": {
      ".read": true,
      ".write": true
    }
  }
  </code></pre>
  
  <p>Created a simple class <code>Message</code>:</p>
  
  <pre><code>import com.google.firebase.database.DatabaseReference;
  import com.google.firebase.database.FirebaseDatabase;
  
  public class Message {
      FirebaseDatabase database = FirebaseDatabase.getInstance();
      DatabaseReference dbRef = database.getReference();
      public String sender;
      public String message;
  
      public Message(){}
  
      public Message(String sender, String message) {
          this.sender = sender;
          this.message = message;
      }
  }
  </code></pre>
  
  <p>And set a button to perform the onClick method <code>writeNewMessage</code> with these being the significant lines of code:</p>
  
  <pre><code>int counter = 0;
  
  public void writeNewMessage(View view) {
  
          counter += 1;
          Message messageToWrite = new Message("John", "Simple message: " + counter);
          String messageId = String.valueOf(counter);
  
          dbRef.child("users").child(messageId).setValue(messageToWrite);
      }
  </code></pre>
  
  <p>When running, I receive the error:</p>
  
  <pre><code>W/RepoOperation: setValue at /users/1 failed: DatabaseError: Permission denied
  </code></pre>
  
  <p>I know this question seems simple and likely to have been repeated, but I have yet to find any that asks this problem without having their error be involved in authentication or some other component. The simplicity of the problem is what confuses me the most.</p>
  
  <p><strong>EDIT:</strong> I've also found this error as well:</p>
  
  <pre><code>Failed to load module descriptor class: Didn't find class "com.google.android.gms.dynamite.descriptors.com.google.firebase.auth.ModuleDescriptor"
  </code></pre>