Error: Cannot find symbol in java / android phonegap / cord plugin when importing flask

I want to change ID3 tags (MP3 file) using phonegap / cordova ionic. I found My ID3 Tags library for android https://sites.google.com/site/eternalsandbox/myid3-for-android

but when i include jar file it shows error when compiling ionic project.

C:\phonegap\coolplugin_app\platforms\android\src\CoolPlugin.java:45: er
             MusicMetadataSet src_set = null;
             ^
   symbol: class MusicMetadataSet
 C:\phonegap\coolplugin_app\platforms\android\src\CoolPlugin.java:47: er
                 src_set = new MyID3().read(src);
                               ^
   symbol: class MyID3
 C:\phonegap\coolplugin_app\platforms\android\src\CoolPlugin.java:48: er
             } catch (IOException e1) {
                      ^
   symbol: class IOException
 C:\phonegap\coolplugin_app\platforms\android\src\CoolPlugin.java:60: er
                     IMusicMetadata metadata = src_set.getSimplified();

      

how to solve this? Am I missing some classes for inheritance? and where to include the .jar file.

here is my plugin.xml

<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
    xmlns:android="http://schemas.android.com/apk/res/android"
    id="com.matd.coolplugin"
    version="0.2.11">
    <name>CoolPlugin</name>
    <description>The coolest Plugin ever implemented</description>
    <license>Apache 2.0</license>
    <keywords>cordova,coolest</keywords>
    <repo></repo>
    <issue></issue>
    <js-module src="www/CoolPlugin.js" name="CoolPlugin">
        <clobbers target="CoolPlugin" />
    </js-module>
    <!-- android -->
    <platform name="android">
        <config-file target="res/xml/config.xml" parent="/*">
            <feature name="CoolPlugin" >
                <param name="android-package" value="CoolPlugin"/>
            </feature>
        </config-file>
        <source-file src="src/android/MyID3_for_Android.jar" target-dir="libs" />
        <source-file src="src/android/CoolPlugin.java" target-dir="src/" />
    </platform>
</plugin>

      

+3


source to share





All Articles