triniwiz / nativescript-downloader

Apache License 2.0
32 stars 18 forks source link

Execution failed for task ':app:processF0F1F2F3F4F5F6F7DebugResources'. #2

Closed LorenDorez closed 6 years ago

LorenDorez commented 6 years ago

F:\GLSS\Clients\Oversii\MobileApps\NativeScript\Patrolman Mobile App\platforms\android\app\build\intermediates\res\merged\F0F1F2F3F4F5F6F7\debug\values-v26\values-v26.xml:15:21-54: AAPT: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

F:\GLSS\Clients\Oversii\MobileApps\NativeScript\Patrolman Mobile App\platforms\android\app\build\intermediates\res\merged\F0F1F2F3F4F5F6F7\debug\values-v26\values-v26.xml:15: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

FAILURE: Build failed with an exception.

LorenDorez commented 6 years ago

I have went into android studio and updated my build tools to the latest version but still getting this error when i add the plugin

triniwiz commented 6 years ago

Try adding the following to your app.gradle located in the App_Resources the lib behind this plugin uses 27.0.2 from the support lib

configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
    def requested = details.requested
    if (requested.group == 'com.android.support') {
        if (!requested.name.startsWith("multidex")) {
            details.useVersion '27.0.2'
        }
     }

   }
}
LorenDorez commented 6 years ago

Still getting the same build error

LorenDorez commented 6 years ago

I also tried running the command android update sdk and making sure the build tools are installed there as well

triniwiz commented 6 years ago

Add the following to the same file then rebuild

dependencies {
    compile 'com.android.support:appcompat-v7:27.0.02'
}
LorenDorez commented 6 years ago

Still no luck. Here is what my app.gradle looks like.

// Add your native dependencies here:

// Uncomment to add recyclerview-v7 dependency
//dependencies {
//  compile 'com.android.support:recyclerview-v7:+'
//}

android {  
  defaultConfig {  
    generatedDensities = []
    applicationId = "org.nativescript.PatrolmanMobileApp" 

    //override supported platforms
    // ndk {
    //       abiFilters.clear()
    //          abiFilters "armeabi-v7a"
        // }

  }  
  aaptOptions {  
    additionalParameters "--no-version-vectors"  
  }  
} 

def settingsGradlePath = "$rootDir/../../app/App_Resources/Android/settings.gradle";
def settingsGradleFile = new File(settingsGradlePath);
if(settingsGradleFile.exists())
{
    apply from: settingsGradleFile;
}

configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
    def requested = details.requested
    if (requested.group == 'com.android.support') {
        if (!requested.name.startsWith("multidex")) {
            details.useVersion '27.0.2'
        }
     }

   }
}
dependencies {
    compile 'com.android.support:appcompat-v7:27.0.02'
}
LorenDorez commented 6 years ago

Its saying the SDK isnt install but i have installed it both from Android Studio and VS Code using android update sdk

triniwiz commented 6 years ago

verify the the sdk tools are updated

screen shot 2018-01-19 at 4 43 53 pm
LorenDorez commented 6 years ago

I have in both areas. I am uninstalling and reinstalling right now

LorenDorez commented 6 years ago

When i run TNS doctor i get the following

You need to have the Android SDK Build-tools installed on your system. You can install any version in the following range: '>=23 <=26'. Run $ %ANDROID_HOME%\tools\android from your command-line to install required Android Build Tools.

LorenDorez commented 6 years ago

Looks like uninstalling EVERYTHING and reinstall worked