AndroidPdfViewer
AndroidPdfViewer copied to clipboard
Whole application hangs after adding this software
Hello,
it crashes my whole application. Changes made until now:
------------------------------build.gradle (Module: ) Begin snippet dependencies {
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.android.material:material:1.7.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.navigation:navigation-fragment:2.5.3'
implementation 'androidx.navigation:navigation-ui:2.5.3'
**implementation 'com.github.mhiew:android-pdf-viewer:3.2.0-beta.1'**
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
} ------------------------------build.gradle (Module: ) End snippet
------------------------------gradle.properties (Project Properties ) Begin snippet added lines at end of file maven {url "https://jcenter.bintray.com"} android.enableJetifier=true ------------------------------gradle.properties (Project Properties ) Begin snippet
Added to my Java Code to manage the fragment:
import com.github.barteksc.pdfviewer.PDFView; import com.github.barteksc.pdfviewer.listener.OnLoadCompleteListener; import com.github.barteksc.pdfviewer.listener.OnPageChangeListener; import com.github.barteksc.pdfviewer.listener.OnPageErrorListener; import com.github.barteksc.pdfviewer.scroll.DefaultScrollHandle; import com.github.barteksc.pdfviewer.util.FitPolicy; import com.shockwave.pdfium.PdfDocument;
Remark: The akronym "github" is marked red.
Inside the class I added:
PDFView pdfView;
So far I see it hangs at:
public void onViewCreated(@NonNull View view, Bundle savedInstanceState)
{
super.onViewCreated(view, savedInstanceState);
** pdfView=view.findViewById(R.id.dfDocumentation); ** }
No chance to debug this stuff.
Anyone any suggestions and help?
regards Gerald