Hey,
wie kann ich eine Tonspur aus einer Audio Datei (vom MediaPlayer grade abgespielte Datei) erstellen ? Also visuell darstellen.
Danke im Vorraus.
MfG T3chcd3r
Hey,
wie kann ich eine Tonspur aus einer Audio Datei (vom MediaPlayer grade abgespielte Datei) erstellen ? Also visuell darstellen.
Danke im Vorraus.
MfG T3chcd3r
Wenn du das alles mit Gradle machst. Soltesten die jar Dateien nicht mehr im Project sein.
Damit meine ich das was du in deinen ersten Bild gezeigt hast.
Das habe ich schon gemacht, genauso wie die xmlbeans im Grandle raus zulassen, mit dem Clear Projekt versuche ich es mal, wenn ich zuhause bin.
EDIT: Nop immer noch der gleiche Fehler mit den duplizierten Klassen
Kommt wenn ich die App auf meinem Handy ausführen will und die gleiche wie bei dem hier:
Da kommt dann diese Fehlermeldung (kommt anscheinend zu Überschneidungen bei poi und xmlbeans)
CodeAlles anzeigenDuplicate class org.apache.xmlbeans.xml.stream.Location found in modules xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) and xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) Duplicate class org.apache.xmlbeans.xml.stream.ReferenceResolver found in modules xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) and xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) Duplicate class org.apache.xmlbeans.xml.stream.XMLEvent found in modules xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) and xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) Duplicate class org.apache.xmlbeans.xml.stream.XMLInputStream found in modules xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) and xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) Duplicate class org.apache.xmlbeans.xml.stream.XMLName found in modules xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) and xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) Duplicate class org.apache.xmlbeans.xml.stream.XMLStreamException found in modules xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) and xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) Duplicate class org.apache.xmlbeans.xml.stream.utils.NestedThrowable found in modules xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) and xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) Duplicate class org.apache.xmlbeans.xml.stream.utils.NestedThrowable$Util found in modules xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) and xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) Go to the documentation to learn how to Fix dependency resolution errors.
Habe es versucht, Fehler tritt allerdings immer noch auf. (Die Library mit dem org.apache.poi, vorher gelöscht)
implementation group: 'org.apache.poi', name: 'poi', version: '3.17'
implementation group: 'org.apache.poi', name: 'poi-examples', version: '3.17'
implementation group: 'org.apache.poi', name: 'poi-excelant', version: '3.17'
implementation group: 'org.apache.poi', name: 'poi-ooxml', version: '3.17'
implementation group: 'org.apache.poi', name: 'poi-ooxml-schemas', version: '3.17'
implementation group: 'org.apache.poi', name: 'poi-scratchpad', version: '3.17'
implementation group: 'org.apache.xmlbeans', name: 'xmlbeans', version: '2.6.0'
implementation group: 'com.github.virtuald', name: 'curvesapi', version: '1.04'
implementation group: 'commons-codec', name: 'commons-codec', version: '1.10'
implementation group: 'org.apache.commons', name: 'commons-collections4', version: '4.1'
implementation group: 'commons-logging', name: 'commons-logging', version: '1.2'
androidTestImplementation group: 'junit', name: 'junit', version: '4.12'
implementation group: 'log4j', name: 'log4j', version: '1.2.17'
Alles anzeigen
Da kommt dann diese Fehlermeldung (kommt anscheinend zu Überschneidungen bei poi und xmlbeans)
Duplicate class org.apache.xmlbeans.xml.stream.Location found in modules xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) and xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar)
Duplicate class org.apache.xmlbeans.xml.stream.ReferenceResolver found in modules xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) and xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar)
Duplicate class org.apache.xmlbeans.xml.stream.XMLEvent found in modules xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) and xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar)
Duplicate class org.apache.xmlbeans.xml.stream.XMLInputStream found in modules xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) and xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar)
Duplicate class org.apache.xmlbeans.xml.stream.XMLName found in modules xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) and xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar)
Duplicate class org.apache.xmlbeans.xml.stream.XMLStreamException found in modules xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) and xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar)
Duplicate class org.apache.xmlbeans.xml.stream.utils.NestedThrowable found in modules xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) and xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar)
Duplicate class org.apache.xmlbeans.xml.stream.utils.NestedThrowable$Util found in modules xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar) and xmlbeans-2.6.0.jar (xmlbeans-2.6.0.jar)
Go to the documentation to learn how to Fix dependency resolution errors.
Alles anzeigen
Hallo,
ich habe ein Problem mit der Apache POI. Jedes mal wenn ich das Workbook "XSSFWorkbook" erstellen will, tritt dieser Fehler.
Die entsprechende Codezeile ist einfach nur " Workbook workbook = new XSSFWorkbook(); ". Weiterhin ist dieser Code auch in nem try/catch. Danke schonmal für die hilfe.
E/AndroidRuntime: FATAL EXCEPTION: main
Process: de.t3chcd3r.qr_zaehler_liste, PID: 14666
java.lang.BootstrapMethodError: Exception from call site #349 bootstrap method
at org.apache.poi.openxml4j.opc.PackagePartCollection.<init>(PackagePartCollection.java:47)
at org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:245)
at org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:726)
at org.apache.poi.openxml4j.opc.OPCPackage.getPart(OPCPackage.java:604)
at org.apache.poi.openxml4j.opc.OPCPackage.containPart(OPCPackage.java:1109)
at org.apache.poi.openxml4j.opc.PackageRelationshipCollection.<init>(PackageRelationshipCollection.java:161)
at org.apache.poi.openxml4j.opc.PackageRelationshipCollection.<init>(PackageRelationshipCollection.java:133)
at org.apache.poi.openxml4j.opc.PackagePart.loadRelationships(PackagePart.java:570)
at org.apache.poi.openxml4j.opc.PackagePart.<init>(PackagePart.java:110)
at org.apache.poi.openxml4j.opc.PackagePart.<init>(PackagePart.java:81)
at org.apache.poi.openxml4j.opc.PackagePart.<init>(PackagePart.java:129)
at org.apache.poi.openxml4j.opc.internal.PackagePropertiesPart.<init>(PackagePropertiesPart.java:86)
at org.apache.poi.openxml4j.opc.OPCPackage.configurePackage(OPCPackage.java:391)
at org.apache.poi.openxml4j.opc.OPCPackage.create(OPCPackage.java:372)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.newPackage(XSSFWorkbook.java:491)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:257)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:253)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:241)
at de.t3chcd3r.qr_zaehler_liste.ExcelWriter.createFile(ExcelWriter.java:31)
at de.t3chcd3r.qr_zaehler_liste.MainActivity$4.onClick(MainActivity.java:152)
at android.view.View.performClick(View.java:6663)
at android.view.View.performClickInternal(View.java:6635)
at android.view.View.access$3100(View.java:794)
at android.view.View$PerformClick.run(View.java:26199)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
Caused by: java.lang.ClassCastException: Bootstrap method returned null
at org.apache.poi.openxml4j.opc.PackagePartCollection.<init>(PackagePartCollection.java:47)
at org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:245)
at org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:726)
at org.apache.poi.openxml4j.opc.OPCPackage.getPart(OPCPackage.java:604)
at org.apache.poi.openxml4j.opc.OPCPackage.containPart(OPCPackage.java:1109)
at org.apache.poi.openxml4j.opc.PackageRelationshipCollection.<init>(PackageRelationshipCollection.java:161)
at org.apache.poi.openxml4j.opc.PackageRelationshipCollection.<init>(PackageRelationshipCollection.java:133)
at org.apache.poi.openxml4j.opc.PackagePart.loadRelationships(PackagePart.java:570)
at org.apache.poi.openxml4j.opc.PackagePart.<init>(PackagePart.java:110)
at org.apache.poi.openxml4j.opc.PackagePart.<init>(PackagePart.java:81)
at org.apache.poi.openxml4j.opc.PackagePart.<init>(PackagePart.java:129)
at org.apache.poi.openxml4j.opc.internal.PackagePropertiesPart.<init>(PackagePropertiesPart.java:86)
at org.apache.poi.openxml4j.opc.OPCPackage.configurePackage(OPCPackage.java:391)
at org.apache.poi.openxml4j.opc.OPCPackage.create(OPCPackage.java:372)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.newPackage(XSSFWorkbook.java:491)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:257)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:253)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:241)
at de.t3chcd3r.qr_zaehler_liste.ExcelWriter.createFile(ExcelWriter.java:31)
at de.t3chcd3r.qr_zaehler_liste.MainActivity$4.onClick(MainActivity.java:152)
at android.view.View.performClick(View.java:6663)
at android.view.View.performClickInternal(View.java:6635)
at android.view.View.access$3100(View.java:794)
at android.view.View$PerformClick.run(View.java:26199)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
Alles anzeigen