Closed mahavirvataliya closed 6 years ago
app.gradle
// Add your native dependencies here:
// Uncomment to add recyclerview-v7 dependency
//dependencies {
// compile 'com.android.support:recyclerview-v7:+'
//}
android {
defaultConfig {
generatedDensities = []
applicationId = "org.nativescript.cloint"
manifestPlaceholders = [
manifestApplicationId: "${applicationId}",
onesignal_app_id: "xxxxxxxxxxxxxxxxxxxxxxxxxxx", // I have Created And added App id here
onesignal_google_project_number: "REMOTE"
]
//override supported platforms
// ndk {
// abiFilters.clear()
// abiFilters "armeabi-v7a"
// }
}
aaptOptions {
additionalParameters "--no-version-vectors"
}
}
def settingsGradlePath
if(project.hasProperty("appResourcesPath")){
settingsGradlePath = "$project.appResourcesPath/Android/settings.gradle";
} else {
settingsGradlePath = "$rootDir/../../app/App_Resources/Android/settings.gradle";
}
def settingsGradleFile = new File(settingsGradlePath);
if(settingsGradleFile.exists())
{
apply from: settingsGradleFile;
}
@mahavirvataliya Closing this issue as a duplicate of #38. I have added something you can try to resolve this issue there. If you give it a try let us know if it works
Hi guys, is there any solution for this? I am getting same error on NS 5.2.2
Installed plugin using tns plugin add nativescript-onesignal
Thanks!
FWIW, I was able to move the maven inside repositories to get past this.
repositories {
google()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
mobile-app/platforms/android/build.gradle
Above Error Occured in Addition to project