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

Unable to import project #7

Closed
daveenguyen opened this issue May 21, 2014 · 5 comments
Closed

Unable to import project #7

daveenguyen opened this issue May 21, 2014 · 5 comments

Comments

@daveenguyen
Copy link

  1. fresh clone
  2. I click "Import Project..." from the "Welcome to Android Studio" window.
  3. Select the build.gradle on the root folder
  4. I get the following error
    Error:(17, 0) (class: com/novoda/gradle/test/SupportedLanguages, method: super$1$stream signature: ()Ljava/util/stream/Stream;) Illegal use of nonvirtual function call

I am not sure if I'm missing something, I also tried

  1. fresh clone
  2. I ran Script/install-custom-gradle-test-plugin.sh from android-gradle-template folder
  3. I click "Import Project..." from the "Welcome to Android Studio" window.
  4. Select the build.gradle on the root folder
  5. I get the same error

I also tried

  1. fresh clone
  2. I ran install-custom-gradle-test-plugin.sh from android-gradle-template/Script folder
  3. I click "Import Project..." from the "Welcome to Android Studio" window.
  4. Select the build.gradle on the root folder
  5. I get the same error
@nenick
Copy link
Owner

nenick commented May 22, 2014

The plugin looks correct installed. which java version use you? Current this project support only java 7

@daveenguyen
Copy link
Author

In my project structure i have jdk location point to 1.7
/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home

It might be a problem with OS X.

Here's the AS logfile
https://gist.githubusercontent.com/daveenguyen/08d7c0f834e9b0ad9263/raw/43c0c97045c60c480d32376a6d8dafce5e301459/idea.log

It does show JRE as 1.6, but it also says that it's telling gradle to use jdk1.7

@nenick
Copy link
Owner

nenick commented May 23, 2014

i'm on vacation now, so i have not much time.

short what i know:

  • there are issues when use java 6
  • project works on OS X fine, thats my operations system

check wether your tests run on command line? set your JAVA_HOME to the 1.7 and try again.

@daveenguyen
Copy link
Author

At first it wasn't working on the command-line with JAVA_HOME 1.7,
but then i ran your script to install the plugin and ran gradlew again and it worked!
I tried to delete the gradlew cache and try new clone without the plugin script, but I could not reproduce the error.
Maybe I had bad cache or something?
Thank you for helping.

@nenick
Copy link
Owner

nenick commented May 28, 2014

Plugin is installed to local maven repo. For a full dependency whipe delete this maven repo too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants