Skip to content
Advertisement

Tag: android-studio

Android: checking a button is enabled

I am having problems testing my app. I created an espresso test which is supposed to fail, since whenever I launch my app in the emulator, I get the expected behavior. There is my test: When launching the test, nothing is reported, whereas nextQuestionButton should not be enabled upon clicking the radioButton whose text is “wrong answer”. Answer According to

Why JAR Files Do Not Contain Documentation?

I’m in the process of writing a small Java library that contains a related code that I usually include in most of my android app. I decided to export the library as a jar file then drop the file in the libs folder of my future projects. Using Android Studio: I created a Java Library module and put my code

TextView cannot be cast to EditText

First time posting a question to this site so I might make some mistakes! I’m new to programming and getting the following error when running an application in Android Studio: The code that’s causing this issue is I’ve tried to delete the R.java files and clean the project but it didn’t work, any help solving the problem would be greatly

Cannot import ksoap2 to Android Studio

I just added ksoap2 (actually it is ksoap2-android-assembly-3.4.0-jar-with-dependencies.jar) to app/libs folder. Also I have used the Project Structure window to add ksoap2 to the Dependencies tab. the Build.Gradle has this section Anyway I cannot import ksoap2 like Any clue? Answer At first, You should remove ksoap in Project Structure and do the steps bellow. I have same problem and here

Android Studio: create Java project with no Android dependencies

It’s possible to add pure Java module to existing Android project. But is it possible to create pure Java project with no Android dependencies? Answer Yes, it is possible. You have to manually create all necessary files. Here are steps for Gradle based project: Remove include ‘:app’ form settings.gradle Remove app directory Replace build.gradle with example from end of this

JetBrains IntelliJ Error launching Intellij Platform – Error invoking main method

I have IntelliJ IDEA and other JetBrains products installed and they worked great (PyCharm, Android Studio, Clion, WebStorm) till today, now I just get opening message: Error launching Intellij Platform – Error invoking main method I have installed: C:Program FilesJavajdk1.8.0_25 C:Program FilesJavajre1.8.0_25 and JAVA_HOME is pointing to jdk. I posted at: https://devnet.jetbrains.com/message/5533036#5533036 and https://devnet.jetbrains.com/thread/459951 I installed (clean) Windows 8.1 and

Advertisement