Den onsdagen den 21:e augusti 2013 kl. 22:11:35 UTC+2 skrev orip:
>
> We also get this error on our team, maybe this will help somebody.
>
>    - We commonly build through Android Studio and through the gradle 
>    command-line.
>    - We have Oracle's JDK 1.7 installed.
>    - Gradle on the command line uses the 1.7 JVM (seen by running 'gradle 
>    -version'). Android Studio uses the system default 1.6 JVM.
>    - It's possible that Android Studio's gradle finds the gradle daemon 
>    created on the command line with 1.7, which it can't use.
>
> Since we don't need the 1.7 default, our fix was to kill any lingering 
> gradle daemons and update JAVA_HOME in the terminal to point to 1.6 (e.g. 
> through ~/.zshenv):
> export JAVA_HOME=$(/usr/libexec/java_home -v 1.6)
>
> On Saturday, August 3, 2013 4:36:37 AM UTC+3, Alex Ruiz wrote:
>>
>> In 0.2.3 we did not change how we build projects in Android Studio. What 
>> we changed in 0.2.1 is that, in order to ensure that we use only 1 daemon 
>> for project creation/import and building, we pass the path of the Java home 
>> to the Gradle daemon while building a project.
>>
>> Can you (actually, all of you in this thread) please attach the idea.log 
>> and build.log files from Studio? (go to menu "Help" > "Show log" - 
>> build.log is in folder build-log).
>>
>> Thanks,
>> -Alex
>>
>>
>> On Fri, Aug 2, 2013 at 5:01 PM, Rob Dupuis <[email protected]> wrote:
>>
>>> I'm also seeing this problem, but for me it is intermittent. I seem to 
>>> have fixed it by stopping the Gradle daemon which I had running from the 
>>> command line. But I've no idea if this was just coincidence.
>>>
>>> Is anyone else running the daemon?
>>>
>>>
>>> On Friday, 2 August 2013 12:37:57 UTC+1, Przemek Jakubczyk wrote:
>>>>
>>>> Hi Daniel,
>>>>
>>>> I'm getting the same problems after updating to 0.2.3. I rolled back to 
>>>> 0.2.0 and everything went back to normal state.
>>>>
>>>> Hope this bug is going to be fixed very soon.
>>>>
>>>> W dniu czwartek, 1 sierpnia 2013 17:08:57 UTC+2 użytkownik Daniel Lew 
>>>> napisał:
>>>>>
>>>>> Hey,
>>>>> I'm giving Gradle/Android Studio another shot after a short hiatus.  I 
>>>>> cleared out all my AS files and cleaned my gradle build to start.  I'm 
>>>>> doing fine building gradle on the command line (with gradlew) but when I 
>>>>> try to make the project in AS it blows up with this error:
>>>>>
>>>>> Gradle: Execution failed for task ':project:dexEBadDebug'.
>>>>> > Failed to run command:
>>>>>   /Library/android-sdk/build-tools/18.0.1/dx --dex --incremental 
>>>>> --no-strict --output /Users/dlew/mobiata/gitrepos/
>>>>> ExpediaBookings/project/build/libs/project-EBad-debug.dex 
>>>>> /Users/dlew/mobiata/gitrepos/ExpediaBookings/project/build/classes/EBad/debug
>>>>>  
>>>>> /Users/dlew/mobiata/gitrepos/ExpediaBookings/project/build/dependency-cache/EBad/debug
>>>>>  
>>>>> /Users/dlew/mobiata/gitrepos/ExpediaBookings/project/libs/adxtag2.4.4exp.jar
>>>>>  
>>>>> /Users/dlew/mobiata/gitrepos/ExpediaBookings/project/build/
>>>>> exploded-bundles/ExpediaBookingsLibOpinionLabUn
>>>>> specified.aar/libs/CWAC-Parcel.jar /Users/dlew/mobiata/gitrepos/
>>>>> ExpediaBookings/project/build/exploded-bundles/
>>>>> ExpediaBookingsLibActionBarSherlockActionbarsherlockUnspecified.aar/classes.jar
>>>>>  
>>>>> /Users/dlew/mobiata/gitrepos/ExpediaBookings/project/build/
>>>>> exploded-bundles/ExpediaBookingsLibFlightLibUnspecified.aar/classes.jar 
>>>>> /Users/dlew/mobiata/gitrepos/ExpediaBookings/project/build/
>>>>> exploded-bundles/ExpediaBookingsLibOpinionLabUnspecified.aar/libs/oosdk.jar
>>>>>  
>>>>> /Users/dlew/mobiata/gitrepos/ExpediaBookings/project/libs/nineoldandroids-2.4.0.jar
>>>>>  
>>>>> /Users/dlew/mobiata/gitrepos/ExpediaBookings/project/build/
>>>>> exploded-bundles/ExpediaBookingsLibUtilsUnspeci
>>>>> fied.aar/libs/HockeySDK-3.0.0.jar /Users/dlew/mobiata/gitrepos/
>>>>> ExpediaBookings/project/build/exploded-bundles/
>>>>> ExpediaBookingsLibGooglePlayServicesUnspecified.aar/classes.jar 
>>>>> /Users/dlew/mobiata/gitrepos/ExpediaBookings/project/build/
>>>>> exploded-bundles/ExpediaBookingsLibSvgAndroidSv
>>>>> gandroidUnspecified.aar/classes.jar /Users/dlew/mobiata/gitrepos/
>>>>> ExpediaBookings/project/libs/jackson-core-asl-1.8.0.jar 
>>>>> /Users/dlew/mobiata/gitrepos/ExpediaBookings/project/build/
>>>>> exploded-bundles/ExpediaBookingsLibJarsUnspecified.aar/libs/maps-17_r3.jar
>>>>>  
>>>>> /Users/dlew/mobiata/gitrepos/ExpediaBookings/project/build/
>>>>> exploded-bundles/ExpediaBookingsLibGooglePlaySe
>>>>> rvicesUnspecified.aar/libs/google-play-services-second-party.jar 
>>>>> /Users/dlew/mobiata/gitrepos/ExpediaBookings/project/build/
>>>>> exploded-bundles/ExpediaBookingsLibUtilsUnspecified.aar/classes.jar 
>>>>> /Users/dlew/mobiata/gitrepos/ExpediaBookings/project/build/
>>>>> exploded-bundles/ExpediaBookingsLibJarsUnspecified.aar/classes.jar 
>>>>> /Users/dlew/mobiata/gitrepos/ExpediaBookings/project/libs/libGoogleAnalyticsV2.jar
>>>>>  
>>>>> /Users/dlew/mobiata/gitrepos/ExpediaBookings/project/libs/admsAppLibrary-3.0.5.jar
>>>>>  
>>>>> /Users/dlew/mobiata/gitrepos/ExpediaBookings/project/build/
>>>>> exploded-bundles/ExpediaBookingsLibUtilsUnspeci
>>>>> fied.aar/libs/disklrucache-1.2.1.jar /Users/dlew/mobiata/gitrepos/
>>>>> ExpediaBookings/project/build/exploded-bundles/
>>>>> ExpediaBookingsLibFacebookSdkFacebookUnspecified.aar/classes.jar 
>>>>> /Users/dlew/mobiata/gitrepos/ExpediaBookings/project/build/
>>>>> exploded-bundles/ExpediaBookingsLibOpinionLabUnspecified.aar/classes.jar 
>>>>> /Users/dlew/mobiata/gitrepos/ExpediaBookings/project/build/
>>>>> exploded-bundles/ExpediaBookingsLibUtilsUnspecified.aar/libs/FlurryAgent.jar
>>>>>  
>>>>> /Users/dlew/mobiata/gitrepos/ExpediaBookings/project/libs/gcm.jar 
>>>>> /Users/dlew/mobiata/gitrepos/ExpediaBookings/project/libs/activeandroid-20130607.jar
>>>>>  
>>>>> /Users/dlew/mobiata/gitrepos/ExpediaBookings/project/build/
>>>>> exploded-bundles/ExpediaBookingsLibJarsUnspecif
>>>>> ied.aar/libs/compatlib-v18-2013-07-31.jar 
>>>>> /Users/dlew/mobiata/gitrepos/ExpediaBookings/project/build/
>>>>> exploded-bundles/ExpediaBookingsLibUtilsUnspecified.aar/libs/trace.jar
>>>>>   Error Code:
>>>>>   1
>>>>>   Output:
>>>>>   Unable to locate a Java Runtime to invoke.
>>>>>
>>>>> What's interesting is that if I build on the command line, then the 
>>>>> project in AS also runs fine (I think because it doesn't have to run the 
>>>>> command that it can't do).  But I'm not sure why it's running that 
>>>>> command 
>>>>> in the first place when it should be using the gradle wrapper.  (Nor can 
>>>>> I 
>>>>> figure out why it can't find the Java Runtime).
>>>>>
>>>>> Thoughts?
>>>>>
>>>>> -Daniel
>>>>>
>>>>  -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "adt-dev" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>  
>>>  
>>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to