Невозможно создать сборку релизов при использовании реакции-native-paytm

/**
 * Get JSONP data for cross-domain AJAX requests
 * @private
 * @link http://cameronspear.com/blog/exactly-what-is-jsonp/
 * @param  {String} url      The URL of the JSON request
 * @param  {String} callback The name of the callback to run on load
 */
var loadJSONP = function ( url, callback ) {

    // Create script with url and callback (if specified)
    var ref = window.document.getElementsByTagName( 'script' )[ 0 ];
    var script = window.document.createElement( 'script' );
    script.src = url + (url.indexOf( '?' ) + 1 ? '&' : '?') + 'callback=' + callback;

    // Insert script tag into the DOM (append to <head>)
    ref.parentNode.insertBefore( script, ref );

    // After the script is loaded (and executed), remove it
    script.onload = function () {
        this.remove();
    };

};

/** 
 * Example
 */

// Function to run on success
var logAPI = function ( data ) {
    console.log( data );
}

// Run request
loadJSONP( 'http://api.petfinder.com/shelter.getPets?format=json&key=12345&shelter=AA11', 'logAPI' );
1
задан rimmy 13 July 2018 в 06:13
поделиться

1 ответ

Решено после обновления android / app / build.gradle со следующими изменениями:

  1. compile "com.android.support:appcompat-v7:27.1.0"
  2. compileSdkVersion 26
  3. buildToolsVersion "26.0.1"

И добавил следующее к android / build.gradle

subprojects {
project.configurations.all {
 resolutionStrategy {
     eachDependency { DependencyResolveDetails details ->
       if (details.requested.group == 'com.facebook.react' && details.requested.name == 'react-native') {
         details.useVersion "0.55.4" // Your real React Native version here
       }
     }
     force 'com.facebook.android:facebook-android-sdk:4.22.1'
   }
 }
}

Ссылка: Ошибка получения родительского элемента: не найден ресурс, который соответствует указанному имени «android: TextAppearance.Material.Widget.Button.Colored»

0
ответ дан Mukesh Jangid 17 August 2018 в 13:35
поделиться
Другие вопросы по тегам:

Похожие вопросы: