Selendroid, command android no longer available - java

I'm starting with Selendroid. I followed the user guide, which is in the official site and I've had troubles after this command:
java -jar selendroid-standalone-0.17.0-with-dependencies.jar -app selendroid-test-app-0.17.0.apk
I obtain this error:
GRAVE: Error building server: io.selendroid.standalone.exceptions.ShellCommandException: Error executing shell command: /home/ceibal/Android/Sdk/tools/android list avds
If I try executing this command line directly from terminal, I get the following message:
The android command is no longer available. For manual SDK and AVD management, please use Android Studio. For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
Then I tried:
$ANDROID_HOME/tools/bin/sdkmanager list avds
And the result was:
Warning: File /home/ceibal/.android/repositories.cfg could not be loaded. Warning: Failed to find package list
Finally, if I check that the application(s) and the devices are recognized by opening a browser and navigating to:
http://localhost:4444/wd/hub/status.
I can't connect to the server.
I wait for your help. Thanks in advance.

Related

Error: Installation did not succeed. The application could not be installed in Android Studio

I am new to android studio. And the app on which I am working was not giving the installation error with the last code change. Once I add another line of code, I start getting error:
Timed out waiting for the process (com.iab.omid.sampleapp) to appear on
Pixel_3a_API_32_arm64-v8a [emulator-5554].
Installation did not succeed.
The application could not be installed.
List of apks:
[0] '/Users/mukul/Documents/jivox/jivox-android/omsdk-android-1.3.31-Jivox/OM-DemoApp/build/intermediates/apk/defaults/debug/OM-DemoApp-defaults-debug.apk'
Installation failed due to: ''cmd package install-create -r -t --user current --full --dont-kill -r -t --skip-verification -S 10540209' returns error 'Unknown failure: Exception occurred while executing 'install-create':
android.os.ParcelableException: java.io.IOException: Requested internal only, but not enough space
The app is still opening and it seems like the newly added code is not reflected there. (not sure about this).
How can I fix this issue?
Please let me know if more details are required from my side.
Your emulator has ran out of space.
You can clear space by wiping the data
You can add more space by going to advanced settings in AVD popup

Unable to start the daemon process in android studio

I am finding this error again and again.I do uninstall and re install android studio but it's not working.Could anyone help in this issue please.The error message is like this:
Error:Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
Error: Could not find or load main class org.gradle.launcher.daemon.bootstrap.GradleDaemon
Meanwhile you can try this
1.Open the projects gradle.properties file in android studio
2.Added this line at end of file org.gradle.jvmargs=-Xmx1024m & Save the file
3.Close & reopen the project
source

Android Studio (IntelliJ) Error Message

After I have created a new project in the latest Android Studio (IntelliJ), I got an error message:
Moverover, how to bring out the UI in the Android studio (IntelliJ) which was previously in the Android Eclipse?
Gradle FirstApp project refresh failed:
Error: Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized JVM option is used.
Please refer to the user guide chapter on the daemon.
Please read the following process output to find out more:
21:05:33.924 [main] DEBUG o.g.l.daemon.bootstrap.DaemonMain - Assuming the daemon was started with following jvm opts: [-XX:MaxPermSize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Xmx1024m, -Dfile.encoding=windows-1252, -Duser.country=NZ, -Duser.language=en, -Duser.variant]
FAILURE: Build failed with an exception.
What went wrong:
Could not create service of type DaemonContext using DaemonServices.createDaemonContext().
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Right click on the Android Studio and run as administrator...
I had the same problem after updating Android Studio and this problem was resolved by running the Android Studio with administrator privilege.

Error when push Liberty for Java application in IBM Bluemix

when I run sample IBM Bluemix Liberty for Java application https://github.com/ibmjstart/bluemix-java-postgresql-uploader.git following error:
-----> Downloaded app package (1.9M)
-----> Downloaded app buildpack cache (4.0K)
OK
/var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:101:in build_pack': Unable to detect a supported application type (RuntimeError) from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:74:inblock in compile_with_timeout'
from /usr/lib/ruby/1.9.1/timeout.rb:68:in timeout' from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:73:incompile_with_timeout'
from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:54:in block in stage_application' from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:50:inchdir'
from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:50:in stage_application' from /var/vcap/packages/dea_next/buildpacks/bin/run:10:in'
FAILED
Server error, status code: 400, error code: 170001, message: Staging error: cannot get instances since staging failed
TIP: use 'cf logs jpu-henryhan --recent' for more information
The top error looks like you left off the -p <path_to_war> parameter when doing a push. If you just push a directory containing a WAR file, it will not be detected by the Java buildpack.
The tip provided in the output of your cf push request is relevant.
TIP: use 'cf logs jpu-henryhan --recent' for more information
Running that command will tail the log files produced during the staging process and let you see what error may have been raised. Often, it can be a missing dependency or a transient failure of some sort.
I just successfully deployed the sample using the "deploy to Bluemix" button and manually via the cf command line tool. Unless you changed the code, it is most likely that this error is a transient failure.
Run following command:
$ cf push jpu- -b https://github.com/cloudfoundry/java-buildpack --no-manifest --no-start -p PostgreSQLUpload.war
add the parameter to set the buildpack "-b https://github.com/cloudfoundry/java-buildpack"

Phonegap 3.3 cannot add platform

I have upgraded my Phonegap running on Windows 7 to the currently latest version to 3.3.0. I could create a project without any issue but when I try to add a platform say "android" an error occurs. Shown below is the error I get when I run "cordova platform add android" command on command promt on Windows 7. Please help.
E:\Dropbox\Development\Android\weatherlk>cordova platform add android
Creating android project...
C:\Users\Teshan\AppData\Roaming\npm\node_modules\cordova\node_modules\q\
throw e;
^
Error: An error occured during creation of android sub-project.
C:\Users\Teshan\.cordova\lib\android\cordova\3.3.0\bin\node_modules\q\q.
throw e;
^
Error: An error occurred while listing Android targets
at C:\Users\Teshan\.cordova\lib\android\cordova\3.3.0\bin\lib\check_
at _rejected (C:\Users\Teshan\.cordova\lib\android\cordova\3.3.0\bin
at C:\Users\Teshan\.cordova\lib\android\cordova\3.3.0\bin\node_modul
at Promise.when (C:\Users\Teshan\.cordova\lib\android\cordova\3.3.0\
at Promise.promise.promiseDispatch (C:\Users\Teshan\.cordova\lib\and
752:41)
at C:\Users\Teshan\.cordova\lib\android\cordova\3.3.0\bin\node_modul
at flush (C:\Users\Teshan\.cordova\lib\android\cordova\3.3.0\bin\nod
at process._tickCallback (node.js:415:13)
at C:\Users\Teshan\AppData\Roaming\npm\node_modules\cordova\src\plat
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Process.ChildProcess._handle.onexit (child_process.js:802:5)
I had exactly this problem today. Turned out I had white space in the path variable for \android-sdk\tools (in windows 7 environment variables). Check the android batch file runs, ie type android in a command prompt in any directory, and also adb for the platform-tools path. A similar question is answered here < An error occured during creation of android sub-project >.
Here is a blog about installing it from start to finish with a little more detail than phonegap/cordova docs offer. A lot easier than piecing together the different stack questions: http://www.andrewsavory.com/blog/2013/2517

Categories