Gradle doesn't work in VS 2015 on .2285 version

oxygene

(Mateusz Gałązka) #1

Hi,
On .2285 in VS 2015 (platform Cooper) gradle does’t work on .2275 all works fine … On .2285 .aar are not accessible.
I think that reference from gradle file is broken :frowning:
My build.gradle file :

dependencies {
compile ‘com.android.support:appcompat-v7:22.+’
compile ‘com.android.support:recyclerview-v7:22.+’
compile ‘com.android.support:support-v4:22.+’
compile ‘com.android.support:support-annotations:22.+’
}

Best regards
Mateusz


(marc hoffman) #2

.2285 uses EBuild to build Java ands Android projects, which uses our new GradleRefeerence system instead go .grade files (and Gradle itself). See https://docs.elementscompiler.com/Projects/References/PackageReferences/. You will need to convert your project to using the new format (manually, for now, since VS doesn’t support adding Gradle references in the UI yet. sorry).


(marc hoffman) #3

Next week’s Fire/Water beta build will have an option to (try to) convert a .grade file to package references for you.


(Mateusz Gałązka) #4

Simple example with one dependency:) I will convert it I don’t like m$build:)


(marc hoffman) #5
<GradleReference Include="com.android.support:appcompat-v7:22">
  <Private>True</Private>
</GradleReference>
<GradleReference Include="com.android.support:recyclerview-v7:22">
  <Private>True</Private>
</GradleReference>
<GradleReference Include="com.android.support:support-v4:22">
  <Private>True</Private>
</GradleReference>
<GradleReference Include="com.android.support:support-annotations:22">
  <Private>True</Private>
</GradleReference>

this is what the Convert I implemented today added to my dummy project w/ your Gradle.

:+1:

com.remobjects.androidapplication33.elements (4.2 KB)