Comments (21)
Thanks man 👍
That's weird, I guess it's not related to dryrun
,
gradlew:159 has this:
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
function splitJvmOpts() {
JVM_OPTS=("$@")
}
Please go to the project's folder in the terminal and type:
./gradlew clean assemble installDebug
And tell me what the output is
from dryrun.
/gradlew clean assemble installDebug
The whole process run successfully, but it does download the gradle first, is it affecting the process?
** building process **
Installing APK 'app-debug.apk' on 'Nexus7 - 5.1'
Installed on 1 device.
BUILD SUCCESSFUL
Total time: 14.263 secs
from dryrun.
Now that that gradle version is downloaded, does dryrun run successfully?
If not can you paste all the output?
from dryrun.
Nope. I'm using Ubuntu 14.04 by the way
dryrun https://github.com/cesarferreira/android-helloworld
/usr/lib/ruby/gems/1.9.1/gems/dryrun-0.4.1/lib/dryrun.rb:12: warning: Insecure world writable dir /opt/mongodb/bin in PATH, mode 040777
Cloning into '/tmp/dryrun/cesarferreira/android-helloworld'...
remote: Counting objects: 124, done.
remote: Compressing objects: 100% (49/49), done.
remote: Total 124 (delta 35), reused 124 (delta 35), pack-reused 0
Receiving objects: 100% (124/124), 2.24 MiB | 873.00 KiB/s, done.
Resolving deltas: 100% (35/35), done.
Checking connectivity... done.
Success
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.
> If you want to remove the app you just installed, execute:
adb uninstall github.cesarferreira.helloworld
from dryrun.
What's your jdk and java versions?
@esafirm please do a:
gem install dryrun
I can see that you're using 1.9.1
/usr/lib/ruby/gems/1.9.1/gems/
which is not supported by a few of my gems, you need at least 2.0.0.
after installing >2.2.0 (I recommend rvm
) let me know if the problems persists and I'll re-open the issue
from dryrun.
gradlew: 158: gradlew: Syntax error: "(" unexpected
adb server is out of date. killing...
cannot bind 'tcp:5037'
ADB server didn't ACK
- failed to start daemon *
error:
Installing com.dk.sample.folder.residemenu...
executing: adb shell am start -n "com.dk.sample.folder.residemenu/com.dk.sample.folder.residemenuMenuActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
adb server is out of date. killing...
- daemon started successfully *
error: device not found
If you want to remove the app you just installed, execute:
adb uninstall com.dk.sample.folder.residemenu
from dryrun.
@akashk92 can you please tell me:
- ruby version
- github url (is this one? https://github.com/dkmeteor/Folder-ResideMenu)
from dryrun.
ruby gem version : 2.4.7
yes I am trying to fetch same url
from dryrun.
Works fine on my end mate, have you tried to kill your adb, disconnect and connect the device?
I can read error: device not found
which causes the gradle's build to fail
from dryrun.
I am trying with genymotion
and Yes i tried killing and restarting it..
from dryrun.
I have also set path Envirmnt and sdk path in genymotion settings
from dryrun.
What if you close genymotion and run a real device, does it work?
from dryrun.
kind of a different problem with emulator (This tym I tried another libary):
Cloning into '/tmp/dryrun/sacot41/SCViewPager'...
remote: Counting objects: 189, done.
remote: Total 189 (delta 0), reused 0 (delta 0), pack-reused 189
Receiving objects: 100% (189/189), 2.89 MiB | 567.00 KiB/s, done.
Resolving deltas: 100% (50/50), done.
Checking connectivity... done.
gradlew: 158: gradlew: Syntax error: "(" unexpected
Failed
Installing com.dev.sacot41.myresume...
executing: adb shell am start -n "com.dev.sacot41.myresume/com.dev.sacot41.myresume.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.dev.sacot41.myresume/.MainActivity }
Error type 3
Error: Activity class {com.dev.sacot41.myresume/com.dev.sacot41.myresume.MainActivity} does not exist.
If you want to remove the app you just installed, execute:
adb uninstall com.dev.sacot41.myresume
from dryrun.
Looks like it has something to do with your linux way to handle bash scripts
http://unix.stackexchange.com/questions/45781/shell-script-fails-syntax-error-unexpected
from dryrun.
@akashk92 wanna take a look at #14 ? it looks like the issue was happening because of a missing android API
from dryrun.
This issue needs to be reopened. I am on Ubuntu 14.04.
[~] $ ruby -v
ruby 2.2.5p241 (2016-02-24 revision 53909) [x86_64-linux]
~
[~] $ java -version
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
~
[~] $ dryrun https://github.com/hnrainll/learn-android -p RadioButtoDemo
Cloning into '/tmp/dryrun/hnrainll/learn-android'...
remote: Counting objects: 1546, done.
remote: Total 1546 (delta 0), reused 0 (delta 0), pack-reused 1546
Receiving objects: 100% (1546/1546), 5.88 MiB | 1.38 MiB/s, done.
Resolving deltas: 100% (569/569), done.
Checking connectivity... done.
Using custom app folder: RadioButtoDemo
gradlew: 158: gradlew: Syntax error: "(" unexpected
Failed
Installing com.leochin.radiobuttodemo...
executing: adb shell am start -n "com.leochin.radiobuttodemo/com.leochin.radiobuttodemo.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.leochin.radiobuttodemo/.MainActivity }
Error type 3
Error: Activity class {com.leochin.radiobuttodemo/com.leochin.radiobuttodemo.MainActivity} does not exist.
> If you want to remove the app you just installed, execute:
adb uninstall com.leochin.radiobuttodemo
~
[~] $
from dryrun.
@rpattabi which version of dryrun are you running? the last one is 0.5.6
from dryrun.
I have 0.5.1. I will try with the latest when I get a chance and update here. Thanks.
from dryrun.
did it fix it @rpattabi ?
from dryrun.
Yes, it works fine! Thanks.
I checked it on this config:
~
[~] $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
[~] $ ruby -v
ruby 2.0.0p643 (2015-02-25 revision 49749) [x86_64-linux]
~
[~] $ java -version
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
~
[~] $ dryrun -v
0.6.4
from dryrun.
Great 🎉 thanks for the feedback
from dryrun.
Related Issues (20)
- How to fixed it ? HOT 1
- Gradle 2.4 HOT 1
- ERROR: While executing gem ... (Gem::FilePermissionError)
- ERROR: While executing gem ... (Gem::FilePermissionError) HOT 3
- Failed to install dryrun on windows HOT 3
- Could not determine java version from '11.0.2'. HOT 2
- Can't run JakeWharton's telecine app HOT 5
- Can't install on mac HOT 1
- Stopped working after updating to Mac OS Catalina HOT 4
- Facing problem on Windows 10 HOT 2
- where is dryrun installed? HOT 2
- Cannot download gradle during build HOT 1
- dryrun totally does not work HOT 8
- [MacOS] After updating 1.2.1 to 1.3.0 script stopped working - Permission denied HOT 1
- [Feature Request] Script is not working if repository was downloaded on different branch HOT 1
- Unable to install on Mac OS BigSur HOT 4
- having issue with installing in the windows 10 HOT 2
- OpenTimeOut HOT 2
- No longer works on projects whose master branch is renamed "main".
- Option to specify SDK location HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dryrun.