【发布时间】:2016-09-19 21:25:20
【问题描述】:
package com.example.sawsanalzoubi.vision;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
所以在“import org.opencv.android.OpenCVLoader”中我遇到了以下错误:
unused import statement import org.opencv.android.OpenCVLoader;
public class MainActivity extends AppCompatActivity {
private static final String TAG="MainActivity";
static
{
if(!OpenCVLoader.initDebug){Log.d(TAG,"OpenCV not loaded");
}
else
{
Log.d(TAG,"OpenCV loaded");
}
}
static{ System.loadLibrary("opencv_java3"); }
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
this is a picture of the code this is the video that I have followed
现在我的错误出现了:
1)Error:Dependency Vision:openCVLibrary300:unspecified on project app resolves to an APK archive which is not supported as a compilation dependency. File: C:\Users\...\outputs\apk\openCVLibrary300-release-unsigned.apk
2)Error:Library projects cannot set applicationId. applicationId is set to 'com.example.user.vision' in default config.
我已经尝试了所有我发现的东西 this method 还有这个a solution to a similar question 仍然没有任何效果
【问题讨论】:
标签: android opencv import module