Skip to main content

Posts

Showing posts with the label Android Error

User Input Errors : Material Design Tips

From google material design documentation. Help users fix input errors as soon as they are detected. Disable the submission of a form if errors are detected, and if detected only after form submission, clearly explain the error and how to fix it. How to add? I. In your build.gradle add latest appcompat and design libraries. dependencies { compile 'com.android.support:appcompat-v7:X.X.X'// where X.X.X version compile 'com.android.support:design:X.X.X'// where X.X.X version} II. Make your activity extend android.support.v7.app.AppCompatActivity. publicclassMainActivityextendsAppCompatActivity{...} III. Declare your EditText inside any layout.xml file and wrap it with TextInputLayout. <android.support.design.widget.TextInputLayoutandroid:id="@+id/inputLayout"android:layout_width="match_parent"android:layout_height="wrap_content"app:errorEnabled="true"><EditTextandroid:layout_width="match_parent"android:lay…

No JVM installation found – Android Studio

If you get the following error: No JVM installation found. Please install a 64-bit JDK. If you already have a JDK installed, define a JAVA_HOME variable in Computer > System Properties > System Settings > Environment variables.


If you have not installed JDK, then first install the JDK from Oracle website.
If you have already installed JDK and get this error, then you need to define a new system variable as described in the error message. In Windows 8.1/7/8 (64 bit)
Right click ‘This PC’ and choose properties.In the left, click “Advanced system settings”.At the bottom, click “Environment Variables…” button.Click “New” button to add a new “System variable”.Set the Variable name to “JAVA_HOME” and the Variable value to the path of the JDK. In my case “C:Program FilesJavajdk1.8.0_20″.Click OK.