Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React-native 0.57.x #13

Closed
Kaitsuvaan opened this issue Dec 27, 2018 · 10 comments
Closed

React-native 0.57.x #13

Kaitsuvaan opened this issue Dec 27, 2018 · 10 comments

Comments

@Kaitsuvaan
Copy link

Can you make this work newest react-native... thx

@januslo
Copy link
Owner

januslo commented Dec 27, 2018 via email

@Kaitsuvaan
Copy link
Author

  • What went wrong:
    Could not resolve all files for configuration ':app:debugRuntimeClasspath'.

Could not find any version that matches com.facebook.react:react-native:0.55+.
Versions that do not match:
0.20.1
0.20.0
0.19.1
0.19.0
0.18.0
+ 13 more
Searched in the following locations:

@firdaussoberi
Copy link

Hi, I had the same problem before. I solved it by directly changing build.gradle in node_modules/react-native-bluetooth-escpos-printer/android. There is a line that require react-native ver 0.55+ . Change it to 0.57+ and u shud be fine

@januslo
Copy link
Owner

januslo commented Dec 27, 2018

thx @firdaussoberi , duplicate with #5

@Kaitsuvaan
Copy link
Author

Kaitsuvaan commented Dec 27, 2018

@firdaussoberi hmm... works but get new errors :D

Task :react-native-bluetooth-escpos-printer:compileDebugJavaWithJavac FAILED
XXXXX\node_modules\react-native-bluetooth-escpos-printer\android\src\main\java\cn\jystudio\bluetooth\escpos\RNBluetoothEscposPrinterModule.java:10: error: package cn.jystudio.bluetooth.escpos.command.sdk does not exist
import cn.jystudio.bluetooth.escpos.command.sdk.Command;
XXXX\node_modules\react-native-bluetooth-escpos-printer\android\src\main\java\cn\jystudio\bluetooth\escpos\RNBluetoothEscposPrinterModule.java:11: error: package cn.jystudio.bluetooth.escpos.command.sdk does not exist
import cn.jystudio.bluetooth.escpos.command.sdk.PrintPicture;
^

and more lines!!

@januslo
Copy link
Owner

januslo commented Dec 27, 2018 via email

@firdaussoberi
Copy link

firdaussoberi commented Dec 27, 2018

Yeah, i think u should react-native link after changing the build.gradle. Sometimes other errors like in local android/MainApplication. java and AndroidManifest.xml pops up but that's just about it. If it still doesnt work follow this link(comment from AphexIce) and fix manually

@GanongLS
Copy link

GanongLS commented Aug 4, 2020

so this library was long long dead

@firdaussoberi
Copy link

so this library was long long dead

More like peacefully dormant but yeah I'd agree it needs fresh updates. Maybe author is busy. So far still using it with both android/ios and works with RN0.60

@GanongLS
Copy link

somebody that know android development, please update this library, there is problem with react-native-bluetooth-escpos-printer/android/build.gradle

apply plugin: 'com.android.library'

android {
compileSdkVersion 27 //this need to be update to 28
buildToolsVersion "27.0.3" //this need to be update to 28.0.3

defaultConfig {
    minSdkVersion 16
    targetSdkVersion 24
    versionCode 1
    versionName "1.0"
}
lintOptions {
    abortOnError false
}
sourceSets {
    main {
        aidl.srcDirs = ['src/main/java']
    }
}

}

repositories {
jcenter { url "http://jcenter.bintray.com/" }
maven {url "http://repo.spring.io/plugins-release/"}
mavenCentral()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven {
url 'https://maven.google.com'
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])// this need to change be implementation
implementation 'com.facebook.react:react-native:+' // From node_modules
implementation group: 'com.android.support', name: 'support-v4', version: '27.0.0'
implementation "com.google.zxing:core:3.3.0"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants