se-bastiaan / TorrentStream-Android

A torrent streamer library for Android based on libtorrent4j
Other
343 stars 108 forks source link

its shows error when compiler at gradle #42

Closed hulkfunweb closed 6 years ago

hulkfunweb commented 6 years ago
dependencies {
        compile 'com.github.TorrentStream:TorrentStream-Android:2.5.0'
}

please upload sample zip file of android related to library so we better understand how it works

se-bastiaan commented 6 years ago

What is the error exactly? I can't help without more information.

There is a sample project in the root of the repository.

hulkfunweb commented 6 years ago

sample project not run when i import on latest version of android studio whenever i enter play button thats not working my emulator unable to detect files java and res folder please check this.

se-bastiaan commented 6 years ago

It doesn't run? Okay. But why doesn't it run? You'll have to provide some more information if you want me to help you.

kiryltkach commented 6 years ago
TorrentOptions torrentOptions = new TorrentOptions.Builder()
                .saveLocation(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS))
                .removeFilesAfterStop(true)
                .build();

        TorrentStream torrentStream = TorrentStream.init(torrentOptions);
        torrentStream.startStream(magnetLink);

        torrentStream.addListener(mTorrentListener);

And after that no one method in listener is called. Tried this on emulator on android P.

se-bastiaan commented 6 years ago

@kiryltkach Please open a new issue.