Android compiler: Cannot resolve symbol string

android, intellij-idea, java, sockets, udp

Solution

Use "String" not "string"

Problem

When I try to add a strServerIP to the class Server, I get a: Cannot resolve symbol string compiler error. Why? ``` package com.example; public class Server { //public static java.lang.string SERVERIP; public static android.R.string SERVERIP; public static java.lang.string strServerIP = "monster.idsoftware.com"; public static string strServerIP = "monster.idsoftware.com"; public static int SERVERPORT = 27950; public static int PROTOCOL = 68; } ```

Original source