小编Arg*_*gus的帖子

我的调试AndroidManifest.xml给了我"无法解决符号错误"

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="ac.tec.oop.ahorcado.android"
          android:versionCode="1" 
          android:versionName="1.0">

    <uses-sdk android:minSdkVersion="7" 
              android:targetSdkVersion="16"/>

    <application android:allowBackup="true" 
                    android:icon="@drawable/ic_launcher" 
                    android:label="@string/app_name" 
                    android:theme="@style/AppTheme">
        <activity android:label="@string/app_name"
                  android:name="ac.tec.oop.ahorcado.android.MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>

                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
    </application>

</manifest>
Run Code Online (Sandbox Code Playgroud)

这些行给了我"无法解决符号错误",即使它们需要被引用的包清楚地写出来.我试图解决这个问题几个小时,但我不知道还能做什么.我正在使用Android Studio,它给我带来了很多问题.

android:icon="@drawable/ic_launcher 
android:label="@string/app_name" 
android:theme="@style/AppTheme">
android:name="ac.tec.oop.ahorcado.android.MainActivity">
Run Code Online (Sandbox Code Playgroud)

android android-manifest android-studio

43
推荐指数
1
解决办法
5万
查看次数

调用newtype构造函数

我真的不知道如何使用Haskell中的模块,我对这种语言并不熟悉,到目前为止我只知道最基本的东西,比如创建一个函数和那种东西.现在我收到了一个错误

Not in scope: data constructor 'Mat'
Run Code Online (Sandbox Code Playgroud)

这应该是矩阵的newtype定义的构造函数.这是模块:

module Matrix (Matrix, fillWith, fromRule, numRows, numColumns, at, mtranspose, mmap) where
newtype Matrix a = Mat ((Int,Int), (Int,Int) -> a)

fillWith :: (Int,Int) -> a -> (Matrix a)
fillWith (n,m) k = Mat ((n,m), (\(_,_) -> k))

fromRule :: (Int,Int) -> ((Int,Int) -> a) -> (Matrix a)
fromRule (n,m) f = Mat ((n,m), f)

numRows :: (Matrix a) -> Int
numRows (Mat ((n,_),_)) = n

numColumns :: (Matrix a) -> Int
numColumns …
Run Code Online (Sandbox Code Playgroud)

haskell matrix

2
推荐指数
1
解决办法
232
查看次数