You can reach me via:
cesarferreira / dryrun Goto Github PK
View Code? Open in Web Editor NEW:cloud: Try the demo project of any Android Library
Home Page: http://cesarferreira.com/dryrun/
License: MIT License
:cloud: Try the demo project of any Android Library
Home Page: http://cesarferreira.com/dryrun/
License: MIT License
WARNING: your $ANDROID_HOME is not defined
hint: in your ~/.bashrc or ~/.bash_profile add:
export ANDROID_HOME="/Users/cesarferreira/Library/Android/sdk/"
Now type source ~/.bashrc
But, I have set up ANDROID_HOME and JAVA_HOME
Why have this problem?
I look forward to your reply
Hi, i always get this message when i tried to run it
** cloning process **
Failure [DELETE_FAILED_INTERNAL_ERROR]
gradlew: 158: gradlew: Syntax error: "(" unexpected
Installing github.cesarferreira.helloworld...
executing: adb shell am start -n "github.cesarferreira.helloworld/github.cesarferreira.helloworld.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=github.cesarferreira.helloworld/.MainActivity }
Error type 3
Error: Activity class {github.cesarferreira.helloworld/github.cesarferreira.helloworld.MainActivity} does not exist.
any idea? Thanks and BTW, i love your idea.
when I run dryrun command,download gradle everytime, how to resolve the problem?
I receive the error message when running dryrun https://github.com/googlesamples/android-RuntimePermissions.git
.
Is there a verbose mode to help pinpoint the issue?
Cloning into '/var/folders/9c/0qmt89ls7mv_1f_3bdmgrfy40000gn/T/dryrun/googlesamples/android-RuntimePermissions'...
remote: Counting objects: 163, done.
remote: Total 163 (delta 0), reused 0 (delta 0), pack-reused 163
Receiving objects: 100% (163/163), 503.07 KiB | 886.00 KiB/s, done.
Resolving deltas: 100% (41/41), done.
Checking connectivity... done.
Couldn't open, sorry!
C:\Users\Krokyze>dryrun https://github.com/Yalantis/uCrop
Searching for devices...
Picked 02157df2486d6429
Found project in C:/Users/Krokyze/AppData/Local/Temp/dryrun/f642e9c2cb8a37f543c48ccbdaabbdd632c1f90f112004e757b5dc2060089693...
HEAD is now at df187ea Merge pull request #215 from hearsilent/zh-tw
Fetching origin
Already on 'master'
Your branch is up-to-date with 'origin/master'.
From https://github.com/Yalantis/uCrop
* branch master -> FETCH_HEAD
Already up-to-date.
gradlew NT AUTHORITY\SYSTEM:(F)
BUILTIN\Administrators:(F)
DESKTOP-53L2J02\Krokyze:(F)
Successfully processed 1 files; Failed processing 0 files
RELEASE BUILD
Incremental java compilation is an incubating feature.
:clean UP-TO-DATE
:sample:clean UP-TO-DATE
:ucrop:clean
BUILD SUCCESSFUL
Total time: 16.419 secs
./gradlew installDebug
RELEASE BUILD
Incremental java compilation is an incubating feature.
:sample:preBuild UP-TO-DATE
:sample:preDebugBuild UP-TO-DATE
:sample:checkDebugManifest
:sample:preReleaseBuild UP-TO-DATE
:ucrop:preBuild UP-TO-DATE
:ucrop:preReleaseBuild UP-TO-DATE
:ucrop:compileReleaseNdk UP-TO-DATE
:ucrop:compileLint
:ucrop:copyReleaseLint UP-TO-DATE
:ucrop:checkReleaseManifest
:ucrop:preDebugAndroidTestBuild UP-TO-DATE
:ucrop:preDebugBuild UP-TO-DATE
:ucrop:preDebugUnitTestBuild UP-TO-DATE
:ucrop:preReleaseUnitTestBuild UP-TO-DATE
:ucrop:prepareComAndroidSupportAnimatedVectorDrawable2420Library
:ucrop:prepareComAndroidSupportAppcompatV72420Library
:ucrop:prepareComAndroidSupportSupportCompat2420Library
:ucrop:prepareComAndroidSupportSupportCoreUi2420Library
:ucrop:prepareComAndroidSupportSupportCoreUtils2420Library
:ucrop:prepareComAndroidSupportSupportFragment2420Library
:ucrop:prepareComAndroidSupportSupportMediaCompat2420Library
:ucrop:prepareComAndroidSupportSupportV42420Library
:ucrop:prepareComAndroidSupportSupportVectorDrawable2420Library
:ucrop:prepareReleaseDependencies
:ucrop:compileReleaseAidl
:ucrop:compileReleaseRenderscript
:ucrop:generateReleaseBuildConfig
:ucrop:mergeReleaseShaders
:ucrop:compileReleaseShaders
:ucrop:generateReleaseAssets
:ucrop:mergeReleaseAssets
:ucrop:generateReleaseResValues UP-TO-DATE
:ucrop:generateReleaseResources
:ucrop:mergeReleaseResources
C:\Users\Krokyze\AppData\Local\Temp\dryrun\f642e9c2cb8a37f543c48ccbdaabbdd632c1f90f112004e757b5dc2060089693\ucrop\build\intermediates\exploded-aar\com.android.support\appcompat-v7\24.2.0\res\drawable-hdpi-v4\abc_textfield_search_default_mtrl_alpha.9.png: Error: File path too long on Windows, keep below 240 characters : C:\Users\Krokyze\AppData\Local\Temp\dryrun\f642e9c2cb8a37f543c48ccbdaabbdd632c1f90f112004e757b5dc2060089693\ucrop\build\intermediates\exploded-aar\com.android.support\appcompat-v7\24.2.0\res\drawable-hdpi-v4\abc_textfield_search_default_mtrl_alpha.9.png
:ucrop:mergeReleaseResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':ucrop:mergeReleaseResources'.
> C:\Users\Krokyze\AppData\Local\Temp\dryrun\f642e9c2cb8a37f543c48ccbdaabbdd632c1f90f112004e757b5dc2060089693\ucrop\build\intermediates\exploded-aar\com.android.support\appcompat-v7\24.2.0\res\drawable-hdpi-v4\abc_textfield_search_default_mtrl_alpha.9.png: Error: File path too long on Windows, keep below 240 characters : C:\Users\Krokyze\AppData\Local\Temp\dryrun\f642e9c2cb8a37f543c48ccbdaabbdd632c1f90f112004e757b5dc2060089693\ucrop\build\intermediates\exploded-aar\com.android.support\appcompat-v7\24.2.0\res\drawable-hdpi-v4\abc_textfield_search_default_mtrl_alpha.9.png
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 27.684 secs
The code currently searches for the manifest file here:
path_to_manifest = File.join(path_to_sample, 'src/main/AndroidManifest.xml')
Some projects don't have the manifest file in this location. For instance dryrun will fail with the repo Flex Layout due to it's manifest being at path_to_sample/AndroidManifest.xml
.
I'm a Linux user, after completing all the options in the README.md
gem install dryrun
dryrun [email protected]:cesarferreira/android-helloworld.git
After getting the project cloned, the terminal prints
gradlew: 158: gradlew: Syntax error: "(" unexpected
Failed
then got stuck
windows , when i run dryrun url, tips "Searching for devices.." and no devices attached, however i can,t connect my devices,i am sure all the setting is right
When i install with gem command: raise below error: who can tell me how to fixed it?
ERROR: Error installing dryrun:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
creating Makefile
make "DESTDIR="
make: *** No rule to make target /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/universal-darwin15/ruby/config.h', needed by
driver.o'. Stop.
I don't have much experience with Ruby, any pointers would be helpful. I can see how dryrun
can be extremely helpful, I just need to get it up and running. Thank you for your wonderful contribution. I have already installed alfi
, international
and lasertag
.
I'm trying to install dryrun
on my Ubuntu PC but I couldn't.
When I do a sudo gem install dryrun
I get this,
Building native extensions. This could take a while...
ERROR: Error installing dryrun:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.3.0/gems/rjb-1.5.4/ext
/usr/bin/ruby2.3 -r ./siteconf20160523-23370-6ujxs4.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/$(RUBY_BASE_NAME)2.3
extconf.rb:53:in `<main>': JAVA_HOME is not set. (RuntimeError)
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.3.0/gems/rjb-1.5.4 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/rjb-1.5.4/gem_make.out
I took a look at the logged results and then I found the following information,
current directory: /var/lib/gems/2.3.0/gems/rjb-1.5.4/ext
/usr/bin/ruby2.3 -r ./siteconf20160523-23370-6ujxs4.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/$(RUBY_BASE_NAME)2.3
extconf.rb:53:in `<main>': JAVA_HOME is not set. (RuntimeError)
extconf failed, exit code 1
The error says JAVA_HOME
is not set, but when I echo the path, it works.
echo $JAVA_HOME
returns /usr/lib/jvm/java-8-oracle
My ruby
version is ruby 2.3.0p0 (2015-12-25) [x86_64-linux-gnu]
Let me know if you need more information. Thanks again.
Great work sir!
But how can I run with --stacktrace, --info or --debug? It isn't working for me.
Cheers
Hello, I'm seeing this error when trying to use dryrun. It opens a dialog suggesting me to install the "legacy Java SE 6 runtime". Does this mean I cannot use it with Java 8?
thanks for your great job,
I want to request a feature if it's not exists already. I want to add http and https proxy for gradle when fetching dependencies but I can not find any option.
Hi,i have some problem for "File path too long on Windows, keep below 240 characters".
can i change the porject path? or any the better way can fix it? thank you.
C:\Users\Administrator\AppData\Local\Temp\dryrun\7f9e37d7552261f45a2a5d650a2af78
6a55622ac935840acf6ec163d1304794e\lib\build\intermediates\exploded-aar\com.andro
id.support\appcompat-v7\24.2.0\res\drawable-hdpi-v4\abc_ic_menu_share_mtrl_alpha
.png: Error: File path too long on Windows, keep below 240 characters
Hi @cesarferreira, once again thank you for all your hard work for making our lives easier :)
Can we make dryrun
work with custom Gradle projects too? Currently, the Android project the tool makes use of the Android project directory structure for detection. This makes it impossible to run projects with a different project structure like Jake Wharton's u2020.
Do you have ideas to make it more generic? For instance, use a Gradle AST library to parse the build.gradle
file and check for the application of Android plugin. Wouldn't this be more failsafe? Thanks again.
Which ruby version do we need to use? I having error while running this comand "dryrun https://github.com/cesarferreira/android-helloworld"
/usr/local/lib/ruby/gems/2.3.0/gems/dryrun-0.5.4/lib/dryrun/github.rb:15:in `get_destination': uninitialized constant DryRun::Github::Digest (NameError)
from /usr/local/lib/ruby/gems/2.3.0/gems/dryrun-0.5.4/lib/dryrun/github.rb:11:in `initialize'
from /usr/local/lib/ruby/gems/2.3.0/gems/dryrun-0.5.4/lib/dryrun.rb:85:in `new'
from /usr/local/lib/ruby/gems/2.3.0/gems/dryrun-0.5.4/lib/dryrun.rb:85:in `call'
from /usr/local/lib/ruby/gems/2.3.0/gems/dryrun-0.5.4/bin/dryrun:5:in `<top (required)>'
from /usr/local/bin/dryrun:23:in `load'
My ruby environment
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]
So I'm getting this error:
> dryrun https://github.com/javiersantos/MaterialStyledDialogs
Cloning into 'C:/Users/jaapv/AppData/Local/Temp/dryrun/641ae71289933e1c2d077f65ecc7a8eab8975a6046a64363a1d0636bdbb34569'...
remote: Counting objects: 443, done.
remote: Compressing objects: 100% (3/3), done.
Receiving objects: 75% (333/443), 2.14 MiB | 1.36 MiB/s 440
Receiving objects: 100% (443/443), 3.48 MiB | 1.36 MiB/s, done.
Resolving deltas: 100% (168/168), done.
Checking connectivity... done.
======================================================
Something went wrong while executing this:
$ chmod +x gradlew
======================================================
Now I looked at your closed issues and it seems dryrun should run on Windows, but chmod doesn't work on Windows. Am I doing it wrong?
anybody know how to solve this problem? thank before
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':app'.
failed to find target with hash string 'android-23' in: /Users/ahmedwahdan/Downloads/adt-bundle-mac-x86_64-20140702/sdk
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 6 mins 58.472 secs
Installing github.cesarferreira.helloworld...
executing: adb shell am start -n "github.cesarferreira.helloworld/github.cesarferreira.helloworld.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=github.cesarferreira.helloworld/.MainActivity }
Error type 3
Error: Activity class {github.cesarferreira.helloworld/github.cesarferreira.helloworld.MainActivity} does not exist.
If you want to remove the app you just installed, execute:
Platform: Windows 10 64bit
Had this error with "dryrun https://github.com/krokyze/Let-s-Go-Out"
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/dryrun-0.7.9/lib/dryrun/android_project.rb:81:in `initialize': No such file or directory @ rb_sysopen - C:/Users/Krokyze/AppData/Local/Temp/dryrun/bb9c73d1599bc6822050cd0a32c1b3d27a854c277597c243eb9f44979d5f147b/settings.gradle (Errno::ENOENT)
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/dryrun-0.7.9/lib/dryrun/android_project.rb:81:in `open'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/dryrun-0.7.9/lib/dryrun/android_project.rb:81:in `find_modules'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/dryrun-0.7.9/lib/dryrun/android_project.rb:22:in `initialize'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/dryrun-0.7.9/lib/dryrun.rb:194:in `new'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/dryrun-0.7.9/lib/dryrun.rb:194:in `call'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/dryrun-0.7.9/bin/dryrun:5:in `<top (required)>'
from C:/Ruby23-x64/bin/dryrun:22:in `load'
from C:/Ruby23-x64/bin/dryrun:22:in `<main>'
It's already set on ~/.bashrc and I even restarted my Mac, but still does not work.
If there are any diagnostic steps I can take to help resolve this, please let me know.
dryrun assumes that the android project is at the root of the git repository. If the android project is under subdirectory, we get following error:
[~] $ dryrun https://github.com/hnrainll/learn-android/tree/master/RadioButtoDemo
Cloning into '/tmp/dryrun/master/RadioButtoDemo'...
fatal: repository 'https://github.com/hnrainll/learn-android/tree/master/RadioButtoDemo.git/' not found
https://github.com/hnrainll/learn-android/tree/master/RadioButtoDemo is not a valid android project
Can I install dryrun downloading the source code and adding it to my PATH?
Is this linux compatible
Because i am not able to install after install ruby rake and gem
Building native extensions. This could take a while...
ERROR: Error installing dryrun:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h
Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2/ext/nokogiri/gem_make.out
Searching for devices...
Killing adb, there might be an issue with it...
No devices attached, but I'll run anyway
======================================================
Something went wrong while executing this:
$ git clone --depth 1 https://github.com/shenhuanet/ViewScreenshot.git C:/User
s/ADMINI~1/AppData/Local/Temp/dryrun/5bb074c6fd3aa1e9dd140de65bbab485bd09f5faccc
677f9bc84a72ca610ab04
When I excuted "dryrun https://github.com/venmo/tooltip-view.git", I got the error below:
Cloning into '/var/folders/h8/wtp4421j0874f1smkwc79pg80000gn/T/dryrun/venmo/tooltip-view'...
remote: Counting objects: 168, done.
remote: Compressing objects: 100% (71/71), done.
remote: Total 168 (delta 32), reused 0 (delta 0), pack-reused 80
Receiving objects: 100% (168/168), 169.57 KiB | 5.00 KiB/s, done.
Resolving deltas: 100% (37/37), done.
Checking connectivity... done.
Failure
Downloading https://services.gradle.org/distributions/gradle-2.2-all.zip
Exception in thread "main" java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:78)
at org.gradle.wrapper.Install.createDist(Install.java:47)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:980)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1363)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1391)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1375)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
at sun.net.www.protocol.http.HttpURLConnection.followRedirect0(HttpURLConnection.java:2661)
at sun.net.www.protocol.http.HttpURLConnection.followRedirect(HttpURLConnection.java:2583)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1769)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
at org.gradle.wrapper.Download.downloadInternal(Download.java:59)
at org.gradle.wrapper.Download.download(Download.java:45)
at org.gradle.wrapper.Install$1.call(Install.java:60)
at org.gradle.wrapper.Install$1.call(Install.java:47)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
... 3 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.InputRecord.read(InputRecord.java:505)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:961)
... 18 more
Installing com.venmo.view.tooltip.example...
executing: adb shell am start -n "com.venmo.view.tooltip.example/com.venmo.view.tooltip.example.TooltipActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.venmo.view.tooltip.example/.TooltipActivity }
Error type 3
Error: Activity class {com.venmo.view.tooltip.example/com.venmo.view.tooltip.example.TooltipActivity} does not exist.
If you want to remove the app you just installed, execute:
adb uninstall com.venmo.view.tooltip.example
I also got the error No such file or directory - /platform-tools/adb (Errno::ENOENT)
just like this issue(#58).
Here is a good remindful info to developer (react-native/android-setup).
Please add this to README file. Thanks very much.
Using the project Android-CleanArchitecture I receive the following error:
dryrun https://github.com/android10/Android-CleanArchitecture -m presentation
executing: adb shell am start -n "com.fernandocejas.android10.sample.presentation/
com.fernandocejas.android10.sample.presentation.view.activity.UserDetailsActivity" -a
android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
cmp=com.fernandocejas.android10.sample.presentation/.view.activity.UserDetailsActivity }
java.lang.SecurityException: Permission Denial: starting Intent
{ act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000
cmp=com.fernandocejas.android10.sample.presentation/.view.activity.UserDetailsActivity }
from null (pid=1248, uid=2000) not exported from uid 10235
It is trying to launch UserDetailsActivity
which is the last activity specified in the manifest, but is not a launcher activity.
怎么在window系统上使用? 小白提问
Hey man, first of all thanks for this awesome library, i use in on my mac.
But trying to make it work on my linux machine i get the following:
Searching for devices... /home/serguei/.rvm/gems/ruby-2.3.0/gems/adb-sdklib-0.0.3/lib/adb-sdklib.rb:106:in block in load_sdk_tools_jar: Not found /Users/serguei/Library/Android/sdk/tools/lib/ddmlib.jar (AdbSdkLib::AdbError) from /home/serguei/.rvm/gems/ruby-2.3.0/gems/adb-sdklib-0.0.3/lib/adb-sdklib.rb:104:in each from /home/serguei/.rvm/gems/ruby-2.3.0/gems/adb-sdklib-0.0.3/lib/adb-sdklib.rb:104:in load_sdk_tools_jar from /home/serguei/.rvm/gems/ruby-2.3.0/gems/adb-sdklib-0.0.3/lib/adb-sdklib.rb:54:in initialize from /home/serguei/.rvm/gems/ruby-2.3.0/gems/dryrun-0.7.6/lib/dryrun.rb:101:in new from /home/serguei/.rvm/gems/ruby-2.3.0/gems/dryrun-0.7.6/lib/dryrun.rb:101:in pick_device from /home/serguei/.rvm/gems/ruby-2.3.0/gems/dryrun-0.7.6/lib/dryrun.rb:149:in call from /home/serguei/.rvm/gems/ruby-2.3.0/gems/dryrun-0.7.6/bin/dryrun:5:in <top (required)> from /home/serguei/.rvm/gems/ruby-2.3.0/bin/dryrun:23:in load from /home/serguei/.rvm/gems/ruby-2.3.0/bin/dryrun:23:in <main> from /home/serguei/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in eval from /home/serguei/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in <main>
Any thoughts?
Thanks in advance
Some repositories contain multiple example apps. As far as I can see, there's no way to tell dryrun which app to install/launch, and not all example apps are installed.
Example repository:
https://github.com/konmik/nucleus
Hi
I failed to install dryrun using gem, this is the error message:
➜ ~ gem install dryrun
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://api.rubygems.org/quick/Marshal.4.8/dryrun-0.4.3.gemspec.rz)
How can I fix this?
Thanks
when i run dryrun,it need java6 。but some project need java7 or 8 ,Can I config java version for it?
I get this error:
[~] $ dryrun https://github.com/cesarferreira/android-helloworld
Cloning into '/tmp/dryrun/cesarferreira/android-helloworld'...
remote: Counting objects: 136, done.
remote: Total 136 (delta 0), reused 0 (delta 0), pack-reused 136
Receiving objects: 100% (136/136), 2.24 MiB | 1.08 MiB/s, done.
Resolving deltas: 100% (44/44), done.
Checking connectivity... done.
gradlew: 158: gradlew: Syntax error: "(" unexpected
Failed
Installing github.cesarferreira.helloworld...
executing: adb shell am start -n "github.cesarferreira.helloworld/github.cesarferreira.helloworld.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=github.cesarferreira.helloworld/.MainActivity }
Error type 3
Error: Activity class {github.cesarferreira.helloworld/github.cesarferreira.helloworld.MainActivity} does not exist.
> If you want to remove the app you just installed, execute:
adb uninstall github.cesarferreira.helloworld
May be due to gradle version differences?
dryrun https://github.com/cesarferreira/android-helloworld
Cloning into '/tmp/dryrun/cesarferreira/android-helloworld'...
remote: Counting objects: 136, done.
remote: Total 136 (delta 0), reused 0 (delta 0), pack-reused 136
Receiving objects: 100% (136/136), 2.24 MiB | 1.38 MiB/s, done.
Resolving deltas: 100% (44/44), done.
Checking connectivity... done.
gradlew: 158: gradlew: Syntax error: "(" unexpected
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=github.cesarferreira.helloworld/.MainActivity }
Error type 3
Error: Activity class {github.cesarferreira.helloworld/github.cesarferreira.helloworld.MainActivity} does not exist.
If you want to remove the app you just installed, execute:
adb uninstall github.cesarferreira.helloworld
C:\Users\Administrator>dryrun https://github.com/cesarferreira/android-helloworld
Cloning into 'C:/Users/ADMINI~1/AppData/Local/Temp/dryrun/cesarferreira/android-helloworld'...
remote: Counting objects: 124, done.
remote: Total 124 (delta 0), reused 0 (delta 0), pack-reused 124 eceiving objects: 71% (89/124), 2.21
Receiving objects: 100% (124/124), 2.24 MiB | 25.00 KiB/s, done.
Resolving deltas: 100% (35/35), done.
Checking connectivity... done.
Failure [DELETE_FAILED_INTERNAL_ERROR]
C:/Ruby21-x64/lib/ruby/2.1.0/fileutils.rb:1460:in `unlink': Permission denied @ unlink_internal - C:/Users/ADMINI~1/AppData/Local/Temp/dryrun/cesarferreira/andr
oid-helloworld//app/build.gradle (Errno::EACCES)
from C:/Ruby21-x64/lib/ruby/2.1.0/fileutils.rb:1460:in `block in remove_file'
from C:/Ruby21-x64/lib/ruby/2.1.0/fileutils.rb:1468:in `platform_support'
from C:/Ruby21-x64/lib/ruby/2.1.0/fileutils.rb:1459:in `remove_file'
from C:/Ruby21-x64/lib/ruby/2.1.0/fileutils.rb:521:in `block in mv'
from C:/Ruby21-x64/lib/ruby/2.1.0/fileutils.rb:1579:in `block in fu_each_src_dest'
from C:/Ruby21-x64/lib/ruby/2.1.0/fileutils.rb:1595:in `fu_each_src_dest0'
from C:/Ruby21-x64/lib/ruby/2.1.0/fileutils.rb:1577:in `fu_each_src_dest'
from C:/Ruby21-x64/lib/ruby/2.1.0/fileutils.rb:514:in `mv'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/dryrun-0.4.4/lib/dryrun/android_project.rb:35:in `remove_application_id'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/dryrun-0.4.4/lib/dryrun/android_project.rb:83:in `install'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/dryrun-0.4.4/lib/dryrun.rb:45:in `initialize'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/dryrun-0.4.4/bin/dryrun:11:in `<top (required)>'
from C:/Ruby21-x64/bin/dryrun:23:in `load'
from C:/Ruby21-x64/bin/dryrun:23:in `<main>'
.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/open3.rb:199:in `spawn': No such file or directory - /platform-tools/adb (Errno::ENOENT)
from /Users/xjh1994/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/open3.rb:199:in `popen_run'
from /Users/xjh1994/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/open3.rb:95:in `popen3'
from /Users/xjh1994/.rvm/gems/ruby-2.3.0/gems/dryrun-0.8.0/lib/dryrun/dryrun_utils.rb:50:in `run'
from /Users/xjh1994/.rvm/gems/ruby-2.3.0/gems/dryrun-0.8.0/lib/dryrun/dryrun_utils.rb:46:in `run_adb'
from /Users/xjh1994/.rvm/gems/ruby-2.3.0/gems/dryrun-0.8.0/lib/dryrun.rb:108:in `pick_device'
from /Users/xjh1994/.rvm/gems/ruby-2.3.0/gems/dryrun-0.8.0/lib/dryrun.rb:171:in `call'
from /Users/xjh1994/.rvm/gems/ruby-2.3.0/gems/dryrun-0.8.0/bin/dryrun:5:in `<top (required)>'
from /Users/xjh1994/.rvm/gems/ruby-2.3.0/bin/dryrun:23:in `load'
from /Users/xjh1994/.rvm/gems/ruby-2.3.0/bin/dryrun:23:in `<main>'
from /Users/xjh1994/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
from /Users/xjh1994/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
I got the following error while installing it.
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
Any solution please?
Currently getting SSL errors using any commands on versions 0.7.0 and 0.7.1 running on a Windows 10 machine. Version 0.6.5 works fine.
C:/Ruby23-x64/lib/ruby/2.3.0/net/http.rb:933:in
'connect_nonblock': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError) from C:/Ruby23-x64/lib/ruby/2.3.0/net/http.rb:933:in
connect'
from C:/Ruby23-x64/lib/ruby/2.3.0/net/http.rb:863:indo_start' from C:/Ruby23-x64/lib/ruby/2.3.0/net/http.rb:852:in
start'
from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:319:inopen_http' from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:737:in
buffer_open'
from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:212:inblock in open_loop' from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:210:in
catch'
from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:210:inopen_loop' from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:151:in
open_uri'
from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:717:inopen' from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:35:in
open'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/dryrun-0.7.1/lib/dryrun/dryrun_utils.rb:22:inget_latest_version' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/dryrun-0.7.1/lib/dryrun/dryrun_utils.rb:30:in
is_up_to_date'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/dryrun-0.7.1/lib/dryrun.rb:71:inoutdated_verification' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/dryrun-0.7.1/lib/dryrun.rb:14:in
initialize'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/dryrun-0.7.1/bin/dryrun:5:innew' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/dryrun-0.7.1/bin/dryrun:5:in
<top (required)>'
from C:/Ruby23-x64/bin/dryrun:23:inload' from C:/Ruby23-x64/bin/dryrun:23:in
Is it possible to perform just a shallow clone? Some repos are very big and it's unnecessary to get the whole history.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.