Skip to main content

Featured

Android studio “SDK tools directory is missing”

Following 2 possible solutions will resolve this problem :  Solution1 : To fix the problem, it was required that I list the path to my corporate PAC file by using  Configure -> "Appearance and Behavior" -> System Settings -> HTTP Proxy . I selected "Automatic proxy configuration url:" Delete your  ~/.Android*  folders (losing all of your settings :/). Run Android Studio. It will show you a welcome wizard where it tries to download the SDK again (and fails due to my rubbish internet). Click the X on the wizard window. That will enable you to get to the normal welcome dialog. Go to Settings->Project Defaults->Project Structure and change the Android SDK location to the correct one. Solution 2 : To fix the problem, it was required that I list the path to my corporate PAC file by using  Configure -> "Appearance and Behavior" -> System Settings -> HTTP Proxy . I selected "Automatic proxy configuration url:&quo

code for replacement of characters,in a string..

tempString="pavanKTilak"+"0";
        System.out.println("-----tempString---"+tempString);
        char c=tempString.charAt(tempString.length()-2);
        System.out.println("-----tempString.charAt(tempString.length()-2)---"+tempString.charAt(tempString.length()-2));
      //convert string into array using toCharArray() method of string class
        stringArray = tempString.toCharArray();
        //stringArray[tempString.length()]
       
       
        System.out.println("-----c---"+c);
                            ///old                      new
        tempString=tempString.replace(tempString.charAt(tempString.length()-2), '-');
        System.out.println("-----updatedStr---"+tempString);
        tempString=tempString.replace(tempString.charAt(tempString.length()-1), c);
        System.out.println("-----tempString---"+tempString);
        //tempString[0]=tempString[9];

Comments