Pushwoosh / pushwoosh-phonegap-plugin

Pushwoosh PhoneGap Build Plugin
Other
109 stars 139 forks source link

Cannot build with latest 7.9.3 #301

Closed Kramerican closed 5 years ago

Kramerican commented 5 years ago

Hello

I create a basic config.xml file and include config exactly as described at

https://www.pushwoosh.com/docs/phonegap-build

I get:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'project'.
> Could not resolve all dependencies for configuration ':_debugApkCopy'.
   > Could not find any version that matches com.android.support:support-v4:27.+.
     Versions that do not match:
         26.0.0-alpha1
         25.3.1
         25.3.0
         25.2.0
         25.1.1
         + 32 more
     Required by:
         project :
   > Could not find any version that matches com.android.support:appcompat-v7:27.+.
     Versions that do not match:
         26.0.0-alpha1
         25.3.1
         25.3.0
         25.2.0
         25.1.1
         + 31 more
     Required by:
         project :
   > Could not find any version that matches com.android.support:recyclerview-v7:27.+.
     Versions that do not match:
         26.0.0-alpha1
         25.3.1
         25.3.0
         25.2.0
         25.1.1
         + 26 more
     Required by:
         project :
   > Could not find any version that matches com.android.support:design:27.+.
     Versions that do not match:
         26.0.0-alpha1
         25.3.1
         25.3.0
         25.2.0
         25.1.1
         + 21 more
     Required by:
         project :
Kramerican commented 5 years ago

After much trial and error, it seems I may have solved this by adding an additional plugin and preference:

<plugin name="cordova-android-support-gradle-release" />
<preference name="android-targetSdkVersion" value="26" />
wfhm commented 5 years ago

@Kramerican

Looks like Gradle cannot find 27+ version of Android Support lib to use in the project. Could you please share your project build.gradle? Also, can you confirm that the solution above works for you?

wfhm commented 5 years ago

@Kramerican any updates?

Kramerican commented 5 years ago

@wfhm I am using Phonegap Build - so I don't have a .gradle file

wfhm commented 5 years ago

@Kramerican

I'm sorry for such a long delay in correspondence. It works just fine on our side, so could you please specify which version of cordova-android is used in your project? Also, does adding cordova-android-gradle-release plugin solve the issue?

wfhm commented 5 years ago

Not reproducible, so closed until there is more data to work with.