Giter Club home page Giter Club logo

Comments (9)

promeG avatar promeG commented on July 17, 2024 1

@timshinlee

2.0.2版本已修复此bug,谢谢!

from tinypinyin.

promeG avatar promeG commented on July 17, 2024

Hi,

请问你是用在Android项目中吗?如果是的话,请修改build.gradle文件,

保留:
compile 'com.github.promeg:tinypinyin-lexicons-android-cncity:2.0.1'

移除:
compile 'com.github.promeg:tinypinyin-lexicons-java-cncity:2.0.1'

请检查代码import的是否为com.github.promeg.tinypinyin.lexicons.android.cncity.CnCityDict

如果仍有问题,请贴出你的build.gradle文件和import的类名。

谢谢!

from tinypinyin.

timshinlee avatar timshinlee commented on July 17, 2024

是Android项目哈

gradle中的依赖:
compile 'com.github.promeg:tinypinyin:2.0.1' // TinyPinyin核心包,约80KB
compile 'com.github.promeg:tinypinyin-lexicons-android-cncity:2.0.1' // 可选,适用于Android的**地区词典

import的类名:
import com.github.promeg.tinypinyin.lexicons.android.cncity.CnCityDict;

点击跳转的类声明
public final class CnCityDict extends AndroidAssetDict {}

from tinypinyin.

promeG avatar promeG commented on July 17, 2024

我试了一下是ok的:

Pinyin.init(Pinyin.newConfig().with(CnCityDict.getInstance(MainActivity.this)));

请检查下是否传入了Context参数。

from tinypinyin.

timshinlee avatar timshinlee commented on July 17, 2024

@promeG 传入的是Activity没错,重建了个工程试一下还是不行,那只能不添加字典了,谢谢你!

from tinypinyin.

timshinlee avatar timshinlee commented on July 17, 2024

@promeG 好的,十分感谢!可以用了

from tinypinyin.

promeG avatar promeG commented on July 17, 2024

不客气。

from tinypinyin.

0xByteLeon avatar 0xByteLeon commented on July 17, 2024

@promeG 3.0.0版本又出西安这个问题了

from tinypinyin.

promeG avatar promeG commented on July 17, 2024

@DreamerLeon 请使用当前稳定版本2.0.3,已更新README

from tinypinyin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.