Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gradlew Permission denied #9995

Closed
stanbar opened this issue Aug 8, 2017 · 3 comments
Closed

gradlew Permission denied #9995

stanbar opened this issue Aug 8, 2017 · 3 comments

Comments

@stanbar
Copy link

stanbar commented Aug 8, 2017

Captured Output

Command Used: betaBoth

Output/Log

Successfully loaded Appfile at path '/Users/admin1/GoogleDrive/AndroidStudioProjects/VapeToolPro/fastlane/Appfile'
- json_key_file: '/Users/admin1/GoogleDrive/Vape Tool/Google Play Android Developer-33dfbe21fd7b.json'
-------
Successfully loaded Appfile at path '/Users/admin1/GoogleDrive/AndroidStudioProjects/VapeToolPro/fastlane/Appfile'
- json_key_file: '/Users/admin1/GoogleDrive/Vape Tool/Google Play Android Developer-33dfbe21fd7b.json'
-------

+------+---------------------+-------------+
|             fastlane summary             |
+------+---------------------+-------------+
| Step | Action              | Time (in s) |
+------+---------------------+-------------+
| 1    | Verifying required  | 0           |
|      | fastlane version    |             |
| 2    | default_platform    | 0           |
| 3    | Switch to android   | 0           |
|      | betaFree lane       |             |
| 4    | Switch to android   | 0           |
|      | assembleFree lane   |             |
| 💥   | gradle              | 0           |
+------+---------------------+-------------+


Looking for related GitHub issues on fastlane/fastlane...
Search query: Permission denied - /Users/admin1/GoogleDrive/AndroidStudioProjects/VapeToolPro/gradlew

URL: https://api.github.com/search/issues?q=Permission%20denied%20-%20/Users/admin1/GoogleDrive/AndroidStudioProjects/VapeToolPro/gradlew+repo:fastlane/fastlane
Found no similar issues. To create a new issue, please visit:
https://github.com/fastlane/fastlane/issues/new
Run `fastlane env` to append the fastlane environment to your issue


✅ fastlane environment ✅

Stack

Key Value
OS 10.12.6
Ruby 2.2.4
Bundler? false
Git git version 2.6.4
Installation Source ~/.fastlane/bin/bundle/bin/fastlane
Host Mac OS X 10.12.6 (16G29)
Ruby Lib Dir ~/.fastlane/bin/bundle/lib
OpenSSL Version OpenSSL 1.0.2g 1 Mar 2016
Is contained false
Is homebrew true
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 8.3.3

System Locale

Variable Value
LANG en_US.UTF-8
LC_ALL en_US.UTF-8
LANGUAGE en_US.UTF-8

fastlane files:

`./fastlane/Fastfile`
# Customise this file, documentation can be found here:
# https://github.com/fastlane/fastlane/tree/master/fastlane/docs
# All available actions: https://docs.fastlane.tools/actions
# can also be listed using the `fastlane actions` command

# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`

# If you want to automatically update fastlane if a new version is available:
# update_fastlane

# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "2.38.1"

default_platform :android

platform :android do
  before_all do
    # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."
  end

  desc "Runs all the tests"
  lane :test do
    gradle(task: "test")
  end



  desc "Submit a new Beta Build to Crashlytics Beta"
  lane :beta do
    gradle(task: "assembleRelease")
    crashlytics

    # sh "your_script.sh"
    # You can also use other beta testing services here
  end

  desc "Deploy a new version to the Google Play"
  lane :deploy do
    gradle(task: "assembleRelease")
    supply
  end

  # You can define as many lanes as you want

  after_all do |lane|
    # This block is called, only if the executed lane was successful

    # slack(
    #   message: "Successfully deployed new App Update."
    # )
  end

  error do |lane, exception|
    # slack(
    #   message: exception.message,
    #   success: false
    # )
  end


  desc "Build and release to Beta either free and pro version"
  lane :betaBoth do
    betaFree
    betaPro
  end

  desc "Build and release to production either free and pro version"
  lane :prodBoth do
    prodFree
    prodPro
  end

  desc "Build and release to beta free version"
  lane :betaFree do
    assembleFree
    supply(
      track: "beta",
      package_name: "com.stasbar.vape_tool",
      apk: lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH],
      skip_upload_metadata: "true",
      skip_upload_images: "true"
    )
  end

  desc "Build and release to beta pro version"
  lane :betaPro do
    assemblePro
    supply(
      track: "beta",
      package_name: "com.stasbar.vapetoolpro",
      apk: lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH],
      skip_upload_metadata: "true",
      skip_upload_images: "true"
    )
  end

  desc "Build and release to production free version"
  lane :prodFree do
    assembleFree
    supply(
      metadata_path: "./fastlane/metadata/free",
      track: "beta",
      package_name: "com.stasbar.vape_tool",
      apk: lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH],

      skip_upload_metadata: "true",
      rollout: "0.1"
    )
  end

  desc "Build and release to production pro version"
  lane :prodPro do
    assemblePro
    supply(
      metadata_path: "./fastlane/metadata/pro",
      track: "beta",
      package_name: "com.stasbar.vapetoolpro",
      apk: lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH],
      skip_upload_metadata: "true",
      rollout: "0.1"
    )
  end

  desc "Assemble free version"
  lane :assembleFree do
    gradle(task: "clean")
    gradle(task: "assemble", flavor: "free", build_type: "Release")
  end

  desc "Assemble pro version"
  lane :assemblePro do
    gradle(task: "clean")
    gradle(task: "assemble", flavor: "pro", build_type: "Release")
  end


end


# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
# All available actions: https://docs.fastlane.tools/actions

# fastlane reports which actions are used. No personal data is recorded.
# Learn more at https://github.com/fastlane/fastlane#metrics
`./fastlane/Appfile`
json_key_file "/Users/admin1/GoogleDrive/Vape Tool/Google Play Android Developer-33dfbe21fd7b.json"

for_lane 'flavorFree' do
  package_name "com.stasbar.vape_tool"
end
for_lane 'flavorPro' do
  package_name "com.stasbar.vapetoolpro"
end```
</details>

### fastlane gems

| Gem      | Version | Update-Status |
| -------- | ------- | ------------- |
| fastlane | 2.51.0  |  Up-To-Date  |


### Loaded fastlane plugins:

**No plugins Loaded**


<details><summary><b>Loaded gems</b></summary>

| Gem                       | Version      |
| ------------------------- | ------------ |
| slack-notifier            | 1.5.1        |
| CFPropertyList            | 2.3.5        |
| claide                    | 1.0.1        |
| colored2                  | 3.1.2        |
| nanaimo                   | 0.2.3        |
| xcodeproj                 | 1.4.4        |
| rouge                     | 1.11.1       |
| xcpretty                  | 0.2.6        |
| terminal-notifier         | 1.7.1        |
| unicode-display_width     | 1.1.3        |
| terminal-table            | 1.7.3        |
| plist                     | 3.2.0        |
| public_suffix             | 2.0.5        |
| addressable               | 2.5.1        |
| multipart-post            | 2.0.0        |
| word_wrap                 | 1.0.0        |
| tty-screen                | 0.5.0        |
| babosa                    | 1.0.2        |
| colored                   | 1.2          |
| highline                  | 1.7.8        |
| commander-fastlane        | 4.4.5        |
| excon                     | 0.55.0       |
| faraday                   | 0.12.1       |
| unf_ext                   | 0.0.7.4      |
| unf                       | 0.1.4        |
| domain_name               | 0.5.20170404 |
| http-cookie               | 1.0.3        |
| faraday-cookie_jar        | 0.0.6        |
| fastimage                 | 2.1.0        |
| gh_inspector              | 1.0.3        |
| uber                      | 0.0.15       |
| declarative               | 0.0.9        |
| declarative-option        | 0.1.0        |
| representable             | 3.0.4        |
| retriable                 | 2.1.0        |
| mime-types-data           | 3.2016.0521  |
| mime-types                | 3.1          |
| little-plugger            | 1.1.4        |
| multi_json                | 1.12.1       |
| logging                   | 2.2.2        |
| jwt                       | 1.5.6        |
| memoist                   | 0.15.0       |
| os                        | 0.9.6        |
| signet                    | 0.7.3        |
| googleauth                | 0.5.1        |
| httpclient                | 2.8.3        |
| google-api-client         | 0.12.0       |
| json                      | 1.8.1        |
| mini_magick               | 4.5.1        |
| multi_xml                 | 0.6.0        |
| rubyzip                   | 1.2.1        |
| security                  | 0.1.3        |
| xcpretty-travis-formatter | 0.0.4        |
| dotenv                    | 2.2.0        |
| bundler                   | 1.14.6       |
| faraday_middleware        | 0.11.0.1     |
</details>


*generated on:* **2017-08-08**
</details>
@KrauseFx
Copy link
Member

KrauseFx commented Aug 8, 2017

The current process/user doesn't have permission to run gradle, make sure to resolve it on your machine

Permission denied - /Users/admin1/GoogleDrive/AndroidStudioProjects/VapeToolPro/gradlew

@stanbar
Copy link
Author

stanbar commented Aug 8, 2017

Wow, that was weird since I didn't change anything with permissions. Anyway, chmod a+x gradlew solved problem

@stanbar stanbar closed this as completed Aug 8, 2017
@KrauseFx
Copy link
Member

KrauseFx commented Aug 8, 2017

nice 👍

@fastlane fastlane locked and limited conversation to collaborators Oct 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants