0

Weird issue here, doing something very trivial:

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    Intent i = new Intent(AutoVisionActivity.this, ExampleLoad3DSFile.class);
    startActivity(i);
}

In AndroidManifest.xml I have:

<activity android:name=".activities.ExampleLoad3DSFile"></activity>

And the class itself (ExampleLoad3DSFile) is in the same package as my main activity's onCreate from above. I've tried the standard clean project, refresh, and this: https://stackoverflow.com/a/12702315/624869 but to no avail.

What gives?

4

2 回答 2

1

我遇到了同样的错误,但最后我找到了在我处理MIN3D项目时发生它的原因。

IParser parser = Parser.createParser(Parser.Type.MAX_3DS,
            getResources(), "com.min3d.sampleProject1:raw/monster_high", false);

确保您在ExampleLoad3DSFile 类中使用与您在项目中使用的相同的包名称。

于 2013-04-11T09:43:10.373 回答
1

如果在声明活动时在同一个包中,您应该给出完整的包名或活动的类名,如果它在同一个包中,则以点(。)为前缀。

于 2013-04-11T09:24:07.260 回答