我试图安装pycryptodome
,python-jose-cryptodome
使用pip
中anaocnda3环境。
我收到此错误:
ERROR: Failed building wheel for pycryptodome
Run Code Online (Sandbox Code Playgroud)
我已经尝试了许多版本的许多解决方案(最新版本,指定版本,使用 python 3.8 或 3.7,使用没有缓存的需求文本,甚至单独安装),但对我来说没有任何效果:(。任何解决方案?
我希望一旦我点击按钮,就会出现包含该表格的片段.除表格布局外,一切都会显示.我没弄明白为什么.
这是我的表格布局:
<android.support.v4.widget.NestedScrollView
android:id="@+id/nested_scroll_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="none"
android:scrollingCache="true">
<TableLayout android:id="@+id/simpleTableLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android" >
<TableRow
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:gravity="center_horizontal">
<TextView
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="18dp" android:text="Row 1" android:layout_span="3"
android:padding="18dip" android:background="#b0b0b0"
android:textColor="#000"/>
<TextView
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="18dp" android:text="Row 1" android:layout_span="3"
android:padding="18dip" android:background="#b0b0b0"
android:textColor="#000"/>
</TableRow>
</TableLayout>
</android.support.v4.widget.NestedScrollView>
Run Code Online (Sandbox Code Playgroud)
这是我片段的重要方法:
class TablePresentation : DialogFragment(),tableContract.View
{
...
override fun onCreateView(inflater: LayoutInflater?, parent: ViewGroup?, state: Bundle?): View? {
super.onCreateView(inflater, parent, state)
val view = activity.layoutInflater.inflate(R.layout.table_fragment, parent, false)
view.findViewById<View>(R.id.button_close)?.setOnClickListener({ dismiss() })
return view
}
override fun onViewCreated(view: View?, savedInstanceState: Bundle?) { …
Run Code Online (Sandbox Code Playgroud) 嗨,我想修复这个错误
CMAKE_CXX_COMPILER-NOTFOUND
Run Code Online (Sandbox Code Playgroud)
我在网上搜索并尝试了这两种解决方案
获得构建必需的
sudo apt-get update && sudo apt-get install build-essential
2.尝试安装g++
apt-get install g++
Run Code Online (Sandbox Code Playgroud)
但是我收到这个错误
Err:5 http://ppa.launchpad.net/george-edison55/cmake-3.x/ubuntu bionic Release
404 Not Found [IP: 91.189.95.83 80]
Run Code Online (Sandbox Code Playgroud)
我每次更新都会得到它。我按照这里给出的解决方案进行操作 ,但总是遇到同样的问题。我尝试了很多其他方法但总是失败。
有人可以帮我解决这个错误吗?
您好,我已尝试按照本教程使用FileWriter创建文件
https://medium.com/@ssaurel/parse-and-write-json-data-in-java-with-gson-dd8d1285b28
但我总是得到
not fn
Run Code Online (Sandbox Code Playgroud)
一旦我打开logcat,这意味着永远不会创建该文件.
我不明白这件事.
这是我的代码
fun writeJson()
{
val item1 = InterItem(1, DateT(2018, Calendar.FEBRUARY, 6).date, "Dina", "type1")
val item2 = InterItem(2, DateT(2018, Calendar.MARCH, 8).date, "Lili", "type2")
val item3= InterItem(3, DateT(2018, Calendar.MAY, 10).date, "Wassim", "type3")
val res = ListInter()
res.list= arrayListOf( item1, item2, item3)
val gson = GsonBuilder().setPrettyPrinting().create()
val strJson = gson.toJson(res)
var writer: FileWriter? = null
try {
writer = FileWriter("data.json")
writer.write(strJson)
} catch (e: IOException) {
e.printStackTrace()
Log.e("errr","not fn")
} finally {
if (writer != null) …
Run Code Online (Sandbox Code Playgroud) 我目前使用6.0 version
的的hybris。我们的项目完全基于Backoffice。之前我们为印度尼西亚语言环境配置了in_ID
(languageISOcode_countryISOcode
),并且工作正常,但是现在客户已要求像id_ID
印度尼西亚语言环境一样进行语言环境设置。
请注意,in languageISOcode
已弃用,而id是languageISOcode
印度尼西亚的更新。
以下是我们的hybris中的代码片段:
final Locale locale = cockpitLocaleService.getCurrentLocale();
LOG.info("locale : " + locale); //Here I'm getting in_ID value of locale in all scenario
Run Code Online (Sandbox Code Playgroud)
它正在调用Java的Locale.class文件,如果我通过了,id_ID
那么convertOldISOCodes
method(inside Locale.class
)也将转换id_ID
为in_ID
。
参见下面的代码:
import java.util.Locale;
Locale localeIndonesia = new Locale("id", "ID");
System.out.println(localeIndonesia); //printed in_ID
Run Code Online (Sandbox Code Playgroud)
您能否帮助我获得id_ID
印度尼西亚的语言环境。
要么
如果这是Java中的错误,那么有没有办法在hybri中获取id_ID?
android ×2
anaconda ×1
backoffice ×1
cmake ×1
file ×1
filewriter ×1
hybris ×1
java ×1
kotlin ×1
locale ×1
localization ×1
pip ×1
pycryptodome ×1
python ×1
tablelayout ×1
ubuntu-18.04 ×1