I am currently trying to use BitcoinJ for android.
you can check their jar and gradle builds here at https://bitcoinj.github.io/#getting-started
I added their library into my build.gradle which is...
ive posted on stackoverflow regarding this issue where you can find all the images at https://stackoverflow.com/questions/53620658/bitcoinj-library-on-android-hung-on-installing-apk
a response below was from Martin Zeitler where he said this in his comment.
"this a) exceeds the scope of the question and b) that build.gradle does not even build any native assembly... which might come from some jar in the libs directory. please accept the answer for the actual question and feel free to ask a new one question, for the new one problem. searching that error message might already provide some clue"
Could someone help explain this to me im confused on what i need and the steps.
you can check their jar and gradle builds here at https://bitcoinj.github.io/#getting-started
I added their library into my build.gradle which is...
Code:
android {
compileSdkVersion 28
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
applicationId "com.example.coinpayapp.coinpayapp"
minSdkVersion 24
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation('me.dm7.barcodescanner:zxing:1.9') { exclude module: 'support-v4' }
implementation 'com.journeyapps:zxing-android-embedded:3.2.0@aar'
implementation 'org.bitcoinj:bitcoinj-core:0.14.7'
api 'org.slf4j:slf4j-api:1.7.25'
implementation 'org.slf4j:slf4j-simple:1.7.12'
}
Code:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
createNotificationChannel();
display();
MainPage.context = getAppContext();
BackWork bwork = new BackWork(this);
bwork.execute("server",null,null);
TextView tVBTCPer = (TextView)findViewById(R.id.tVBTCPer);
DownloadProgressTracker BTCListener = new DownloadProgressTracker() {
@Override
public void progress(double pct, int blocksSoFar, Date date) {
tVBTCPer.setText((int) pct+"%");
}
@Override
public void doneDownload() {
tVBTCPer.setText("100%");
}
};
BTCkit.setDownloadListener(BTCListener).setBlockingStartup(false).startAsync().awaitRunning();
}
ive posted on stackoverflow regarding this issue where you can find all the images at https://stackoverflow.com/questions/53620658/bitcoinj-library-on-android-hung-on-installing-apk
a response below was from Martin Zeitler where he said this in his comment.
"this a) exceeds the scope of the question and b) that build.gradle does not even build any native assembly... which might come from some jar in the libs directory. please accept the answer for the actual question and feel free to ask a new one question, for the new one problem. searching that error message might already provide some clue"
Could someone help explain this to me im confused on what i need and the steps.